Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit 1636558

Browse files
committed
db config
1 parent 8838a13 commit 1636558

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

config/database.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ test:
2222

2323
production:
2424
adapter: postgresql
25-
database: swapi_graphql_ruby_production
26-
pool: 5
27-
timeout: 5000
25+
encoding: unicode
26+
# For details on connection pooling, see rails configuration guide
27+
# http://guides.rubyonrails.org/configuring.html#database-pooling
28+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
29+
database: swapi-graphql-ruby_production
30+
username: swapi-graphql-ruby
31+
password: <%= ENV['SWAPI_GRAPHQL_RUBY_DATABASE_PASSWORD'] %>

0 commit comments

Comments
 (0)