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

28 lines
769 B
YAML
Raw Normal View History

2018-11-23 00:33:08 +05:00
default: &default
adapter: postgresql
encoding: unicode
2018-12-10 06:16:26 +05:00
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
2018-12-09 06:35:08 +05:00
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
2018-11-23 01:20:06 +05:00
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
2018-11-23 00:33:08 +05:00
2018-12-09 06:36:58 +05:00
unsafe: &unsafe
2018-11-23 01:20:06 +05:00
<<: *default
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
2018-11-23 01:20:06 +05:00
2018-12-09 06:36:58 +05:00
development:
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
2018-11-30 12:26:46 +05:00
test: &test
2018-12-09 06:36:58 +05:00
<<: *unsafe
2018-11-23 01:20:06 +05:00
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
2018-11-23 00:33:08 +05:00
2018-11-30 12:26:46 +05:00
cucumber:
<<: *test
2018-12-09 06:31:22 +05:00
production:
<<: *default
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_production' } %>
password: <%= Rails.application.credentials.postgres_password %>