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
2019-08-26 20:14:47 +05:00

30 lines
842 B
YAML

default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
unsafe: &unsafe
<<: *default
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:
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
test: &test
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
cucumber:
<<: *test
production:
<<: *default
host: 'private-partynest-do-user-4455684-0.db.ondigitalocean.com'
port: 25060
database: 'defaultdb'
username: 'doadmin'
password: <%= Rails.application.credentials.postgres_password %>