Improve database configuration
This commit is contained in:
parent
5185a56f65
commit
beb08d8cab
1 changed files with 6 additions and 4 deletions
|
@ -6,15 +6,17 @@ default: &default
|
||||||
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
|
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
|
||||||
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
|
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
|
||||||
|
|
||||||
development:
|
unsafe: &unsafe
|
||||||
<<: *default
|
<<: *default
|
||||||
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
|
|
||||||
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
|
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
|
||||||
|
|
||||||
|
development:
|
||||||
|
<<: *unsafe
|
||||||
|
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
|
||||||
|
|
||||||
test: &test
|
test: &test
|
||||||
<<: *default
|
<<: *unsafe
|
||||||
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
|
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
|
||||||
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
|
|
||||||
|
|
||||||
cucumber:
|
cucumber:
|
||||||
<<: *test
|
<<: *test
|
||||||
|
|
Reference in a new issue