default: &default
  adapter: postgresql
  encoding: unicode
  pool: 5
  username: <%= ENV.fetch 'DATABASE_USERNAME', 'postgres' %>
  password: <%= ENV.fetch 'DATABASE_PASSWORD', 'postgres' %>
  host: <%= ENV.fetch 'DATABASE_HOST', 'localhost' %>
  post: <%= ENV.fetch 'DATABASE_PORT', 5432 %>

development:
  <<: *default
  database: lessy_development

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: lessy_test

production:
  <<: *default
  database: <%= ENV['DATABASE_NAME'] %>
