From 00e5d154e07c246cd7a8256da8000400624eb1f4 Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Mon, 1 Apr 2024 11:00:25 -0400 Subject: [PATCH] set sql_mode --- config/database.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/database.yml b/config/database.yml index cfcf2c2..8dd607b 100644 --- a/config/database.yml +++ b/config/database.yml @@ -5,6 +5,7 @@ default: &default reconnect: true pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> timeout: 10000 + sql_mode: "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION" development: <<: *default