Simplify db config
This commit is contained in:
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
|
development:
|
||||||
|
<<: *default
|
||||||
|
adapter: postgresql_makara
|
||||||
|
prepared_statements: false
|
||||||
database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
|
database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
|
||||||
username: <%= ENV['DB_USER'] %>
|
username: <%= ENV['DB_USER'] %>
|
||||||
password: <%= ENV['DB_PASS'] %>
|
password: <%= ENV['DB_PASS'] %>
|
||||||
host: <%= ENV['DB_HOST'] %>
|
host: <%= ENV['DB_HOST'] %>
|
||||||
port: <%= ENV['DB_PORT'] %>
|
port: <%= ENV['DB_PORT'] %>
|
||||||
|
|
||||||
development:
|
|
||||||
<<: *default
|
|
||||||
adapter: postgresql_makara
|
|
||||||
prepared_statements: false
|
|
||||||
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".
|
||||||
|
|
Loading…
Reference in New Issue