Skip to content

Commit

Permalink
set sql_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Apr 1, 2024
1 parent ce2f2ed commit 00e5d15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00e5d15

Please sign in to comment.