development:
  adapter: <%= ENV["DATABASE_ADAPTER"] %>
  database: <%= ENV["DATABASE_NAME"] %>
  username: <%= ENV["DATABASE_USER"] %>
  password: <%= ENV["DATABASE_PASSWORD"] %>
  pool: 5
  encoding: <%= ENV["DATABASE_ENCODING"] %>

production:
  adapter: <%= ENV["DATABASE_ADAPTER"] %>
  database: <%= ENV["DATABASE_NAME"] %>
  username: <%= ENV["DATABASE_USER"] %>
  password: <%= ENV["DATABASE_PASSWORD"] %>
  pool: 5
  encoding: <%= ENV["DATABASE_ENCODING"] %>

test:
  adapter: <%= ENV["DATABASE_ADAPTER"] %>
  database: <%= ENV["DATABASE_TEST_NAME"] %><%= ENV['TEST_ENV_NUMBER'] %>
  username: <%= ENV["DATABASE_USER"] %>
  password: <%= ENV["DATABASE_PASSWORD"] %>
  pool: 5
  encoding: <%= ENV["DATABASE_ENCODING"] %>
  min_messages: warning

development:
  adapter: <%= ENV["DATABASE_ADAPTER"] %>
  database: <%= ENV["DATABASE_NAME"] %>
  username: <%= ENV["DATABASE_USER"] %>
  password: <%= ENV["DATABASE_PASSWORD"] %>
  pool: 5
  encoding: <%= ENV["DATABASE_ENCODING"] %>
  host: <%= ENV["DATABASE_HOST"] %>

test:
  adapter: <%= ENV["DATABASE_ADAPTER"] %>
  database: <%= ENV["DATABASE_TEST_NAME"] %><%= ENV['TEST_ENV_NUMBER'] %>
  username: <%= ENV["DATABASE_USER"] %>
  password: <%= ENV["DATABASE_PASSWORD"] %>
  pool: 5
  encoding: <%= ENV["DATABASE_ENCODING"] %>
  min_messages: warning
  host: <%= ENV["DATABASE_HOST"] %>

Allow host difference, remove production lie.
Allow host difference, remove production lie.

We deploy to heroku, and they just replace our database.yml anyhow.