defaults: &defaults
  adapter: postgresql
  host: <%= ENV['DATABASE_HOST'] %>  # default is localhost
  username: <%= ENV['DATABASE_USER'] %>  # default is null
  password: <%= ENV['DATABASE_PASSWORD'] %>  # default is null
  encoding: utf8

development:
  <<: *defaults
  database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_development') %>

test:
  <<: *defaults
  database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_test') %>

production:
  # Set DATABASE_URL environment variable
  url: <%= ENV['DATABASE_URL'] %>

# If you want to change this file, please keep the changes in your working
# copy by using
#
#     git update-index --assume-unchanged config/database.yml
#

defaults: &defaults
  adapter: postgresql
  host: <%= ENV['DATABASE_HOST'] %>  # default is localhost
  username: <%= ENV['DATABASE_USER'] %>  # default is null
  password: <%= ENV['DATABASE_PASSWORD'] %>  # default is null
  encoding: utf8

development:
  <<: *defaults
  database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_development') %>

test:
  <<: *defaults
  database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_test') %>

production:
  # Set DATABASE_URL environment variable
  url: <%= ENV['DATABASE_URL'] %>

Add comment on how to keep local changes on tracked files
Add comment on how to keep local changes on tracked files
