Simplify db config
This commit is contained in:
parent
4fe747baf7
commit
2952c9f59d
@ -5,32 +5,22 @@ default: &default
|
||||
encoding: unicode
|
||||
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
|
||||
|
||||
dev_connection: &dev_connection
|
||||
development:
|
||||
<<: *default
|
||||
adapter: postgresql_makara
|
||||
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'] %>
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
adapter: postgresql_makara
|
||||
prepared_statements: false
|
||||
makara:
|
||||
id: postgres
|
||||
sticky: true
|
||||
connections:
|
||||
- role: master
|
||||
<<: *dev_connection
|
||||
blacklist_duration: 0
|
||||
- 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
|
||||
# re-generated from your development database when you run "rake".
|
||||
|
Loading…
Reference in New Issue
Block a user