1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/database.yml
2018-12-09 06:35:08 +05:00

25 lines
808 B
YAML

default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
development:
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
test: &test
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
cucumber:
<<: *test
production:
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_production' } %>
password: <%= Rails.application.credentials.postgres_password %>