28 lines
868 B
YAML
28 lines
868 B
YAML
default: &default
|
|
adapter: postgresql
|
|
encoding: unicode
|
|
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
|
|
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
|
|
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
|
|
|
|
unsafe: &unsafe
|
|
<<: *default
|
|
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
|
|
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
|
|
|
|
development:
|
|
<<: *unsafe
|
|
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
|
|
|
|
test: &test
|
|
<<: *unsafe
|
|
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
|
|
|
|
cucumber:
|
|
<<: *test
|
|
|
|
production:
|
|
<<: *default
|
|
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_production' } %>
|
|
username: <%= ENV.fetch('POSTGRES_USER') { 'doadmin' } %>
|
|
password: <%= Rails.application.credentials.postgres_password[ENV.fetch('POSTGRES_USER') { 'partynest' }.to_sym] %>
|