Simplify db config

This commit is contained in:
rubic0n 2021-01-24 23:57:30 -06:00
parent 4fe747baf7
commit 2952c9f59d

@ -5,32 +5,22 @@ default: &default
encoding: unicode encoding: unicode
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %> sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
dev_connection: &dev_connection
database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASS'] %>
host: <%= ENV['DB_HOST'] %>
port: <%= ENV['DB_PORT'] %>
development: development:
<<: *default <<: *default
adapter: postgresql_makara adapter: postgresql_makara
prepared_statements: false prepared_statements: false
database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASS'] %>
host: <%= ENV['DB_HOST'] %>
port: <%= ENV['DB_PORT'] %>
makara: makara:
id: postgres id: postgres
sticky: true sticky: true
connections: connections:
- role: master - role: master
<<: *dev_connection
blacklist_duration: 0 blacklist_duration: 0
- role: slave - role: slave
<<: *dev_connection
# database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
# username: <%= ENV['DB_USER'] %>
# password: <%= ENV['DB_PASS'] %>
# host: <%= ENV['DB_HOST'] %>
# port: <%= ENV['DB_PORT'] %>
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake". # re-generated from your development database when you run "rake".