defaults: &defaults
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch('OFN_DB_POOL', 6) %>
  host: <%= ENV.fetch('OFN_DB_HOST', 'localhost') %>
  username: <%= ENV.fetch('OFN_DB_USERNAME', 'ofn') %>
  password: <%= ENV.fetch('OFN_DB_PASSWORD', 'f00d') %>
  port:  <%= ENV.fetch('OFN_DB_PORT', 5432) %>

development:
  <<: *defaults
  database: open_food_network_dev

test:
  <<: *defaults
  database: open_food_network_test

production:
  <<: *defaults
  database: open_food_network_prod

staging:
  <<: *defaults
  database: open_food_network_prod
