Update database.yml

This commit is contained in:
admin 2021-02-09 19:41:12 +00:00
parent 669b378c6f
commit 382fd31ec7

View File

@ -44,26 +44,29 @@ test:
# host: <%= ENV['DB_HOST'] || 'localhost' %> # host: <%= ENV['DB_HOST'] || 'localhost' %>
# port: <%= ENV['DB_PORT'] || 5432 %> # port: <%= ENV['DB_PORT'] || 5432 %>
# prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %> # prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>
production: production:
master: master:
adapter: postgresql adapter: postgresql
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'false' %>
url: <%= ENV['DB_MASTER_URL'] %> url: <%= ENV['DB_MASTER_URL'] %>
pool: <%= ENV['DB_POOL'] %> pool: <%= ENV['DB_POOL'] %>
timeout: 5000 timeout: 5000
encoding: unicode encoding: unicode
slave1: slave1:
adapter: postgresql adapter: postgresql
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'false' %>
url: <%= ENV['DB_SLAVE1_URL'] %> url: <%= ENV['DB_SLAVE1_URL'] %>
pool: <%= ENV['DB_POOL'] %> pool: <%= ENV['DB_POOL'] %>
timeout: 5000 timeout: 5000
encoding: unicode encoding: unicode
slave2: slave2:
adapter: postgresql adapter: postgresql
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'false' %>
url: <%= ENV['DB_SLAVE1_URL'] %> url: <%= ENV['DB_SLAVE1_URL'] %>
pool: <%= ENV['DB_POOL'] %> pool: <%= ENV['DB_POOL'] %>
timeout: 5000 timeout: 5000
encoding: unicode encoding: unicode