Skip to content

Commit

Permalink
Fix database.yml when MAX_THREADS or DB_POOL is set (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
slavakisel authored and timurvafin committed Sep 21, 2017
1 parent fbba50b commit f330e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defaults: &defaults
encoding: unicode
min_messages: warning
timeout: 5000
pool: <%= [ENV.fetch("MAX_THREADS", 5), ENV.fetch("DB_POOL", 5)].max %>
pool: <%= [ENV.fetch("MAX_THREADS", 5).to_i, ENV.fetch("DB_POOL", 5).to_i].max %>

development:
database: <%= ENV.fetch("DATABASE_NAME", File.basename(Rails.root)) %>_dev
Expand Down

0 comments on commit f330e6e

Please sign in to comment.