development: &defaults
  adapter: postgresql
  encoding: unicode
  database: <%= ENV['DATABASE_NAME'] %>
  username: <%= ENV['DATABASE_USERNAME'] %>
  password: <%= ENV['DATABASE_PASSWORD'] %>

test:
  <<: *defaults
  database: <%= ENV['TEST_DATABASE_NAME'] %>

development: &defaults
  adapter: postgresql
  encoding: unicode
  database: <%= ENV.fetch('DATABASE_NAME') %>
  username: <%= ENV.fetch('DATABASE_USERNAME') %>
  password: <%= ENV.fetch('DATABASE_PASSWORD') %>

test:
  <<: *defaults
  database: orientation_test

Raise when database vars are not set
Raise when database vars are not set

#fetch will ensure a friendly exception message too.
