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' } %>