From 1273fc9b1d40238d94ffd16840853d0e986afbc4 Mon Sep 17 00:00:00 2001 From: Ben Sheldon Date: Sat, 6 Feb 2016 09:59:29 -0800 Subject: [PATCH] Set postgresql poolsize via RAILS_MAX_THREADS --- .../rails/app/templates/config/databases/postgresql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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