1
0
Fork 0

Improve database configuration

This commit is contained in:
Alex Kotov 2018-12-09 06:36:58 +05:00
parent 5185a56f65
commit beb08d8cab
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

@ -6,15 +6,17 @@ default: &default
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
development:
unsafe: &unsafe
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
development:
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
test: &test
<<: *default
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
cucumber:
<<: *test