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
725 B
YAML
Raw Normal View History

2018-11-22 14:33:08 -05:00
default: &default
adapter: postgresql
encoding: unicode
2019-08-26 03:55:49 -04:00
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
2018-11-22 14:33:08 -05:00
2018-12-08 20:36:58 -05:00
unsafe: &unsafe
2018-11-22 15:20:06 -05:00
<<: *default
2019-08-26 02:06:49 -04:00
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
2018-11-22 15:20:06 -05:00
2018-12-08 20:36:58 -05:00
development:
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
2018-11-30 02:26:46 -05:00
test: &test
2018-12-08 20:36:58 -05:00
<<: *unsafe
2018-11-22 15:20:06 -05:00
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
2018-11-22 14:33:08 -05:00
2018-11-30 02:26:46 -05:00
cucumber:
<<: *test
2018-12-08 20:31:22 -05:00
production:
<<: *default
2019-08-26 02:06:49 -04:00
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_production' } %>
2019-08-26 03:55:49 -04:00
password: 'password'