diff options
author | Ben Sheldon <bensheldon@gmail.com> | 2016-02-06 09:59:29 -0800 |
---|---|---|
committer | Ben Sheldon <bensheldon@gmail.com> | 2016-02-10 11:39:48 -0800 |
commit | 1273fc9b1d40238d94ffd16840853d0e986afbc4 (patch) | |
tree | 90fe75fa782c16f30e1d8b2f67d4074308e6e991 /railties/lib/rails | |
parent | f611e59cb16677156c231aa6328f7e7d47da2a28 (diff) | |
download | rails-1273fc9b1d40238d94ffd16840853d0e986afbc4.tar.gz rails-1273fc9b1d40238d94ffd16840853d0e986afbc4.tar.bz2 rails-1273fc9b1d40238d94ffd16840853d0e986afbc4.zip |
Set postgresql poolsize via RAILS_MAX_THREADS
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml b/railties/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml index d51b2ec199..bd5c0b10f6 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +++ b/railties/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml @@ -19,7 +19,7 @@ default: &default encoding: unicode # For details on connection pooling, see rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling - pool: 5 + pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> development: <<: *default |