1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/database.yml

28 lines
799 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 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
development:
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
test: &test
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
cucumber:
<<: *test
staging:
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_staging' } %>
production:
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_production' } %>