demarches-normaliennes/config/database.yml
2018-09-03 17:08:32 +02:00

26 lines
578 B
YAML

default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("DB_POOL") { 5 } %>
timeout: 5000
development:
<<: *default
database: <%= ENV["DB_DATABASE"] %>
host: <%= ENV["DB_HOST"] %>
username: <%= ENV["DB_USERNAME"] %>
password: <%= ENV["DB_PASSWORD"] %>
test:
<<: *default
database: tps_test
host: localhost
username: tps_test
password: tps_test
production: &production
<<: *default
database: <%= ENV["DB_DATABASE"] %>
host: <%= ENV["DB_HOST"] %>
username: <%= ENV["DB_USERNAME"] %>
password: <%= ENV["DB_PASSWORD"] %>