default: &default
  adapter: postgresql
  encoding: utf8
  username:
  password:
  pool: 5
  timeout: 5000

development:
  <<: *default
  database: spectre_development

test: &test
  <<: *default
  database: spectre_test

cucumber:
  <<: *test

production:
  <<: *default
  url: <%= ENV['DATABASE_URL'] %>

default: &default
  adapter: postgresql
  encoding: utf8
  username: <%= ENV['DATABASE_USERNAME'] %>
  password: <%= ENV['DATABASE_PASSWORD'] %>
  pool: 5
  timeout: 5000

development:
  <<: *default
  database: spectre_development

test: &test
  <<: *default
  database: spectre_test

cucumber:
  <<: *test

production:
  <<: *default
  url: <%= ENV['DATABASE_URL'] %>

Read DB credentials from environment
Read DB credentials from environment