defaults: &defaults
  adapter: postgresql
  encoding: unicode
  pool: 5
  host: localhost
  username: <%= ENV.fetch('DB_USERNAME', 'ofn') %>
  password: <%= ENV.fetch('DB_PASSWORD', 'f00d') %>

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

defaults: &defaults
  adapter: postgresql
  encoding: unicode
  pool: 5
  host: localhost
  username: <%= ENV.fetch('OFN_DB_USERNAME', 'ofn') %>
  password: <%= ENV.fetch('OFN_DB_PASSWORD', 'f00d') %>

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

Add prefixes to ENV vars
Add prefixes to ENV vars
