default: &default
  adapter: postgresql
  encoding: unicode
  host: 127.0.0.1
  pool: 5

development:
  <<: *default
  database: pvb_development

test:
  <<: *default
  database: pvb_test

production:
  adapter: postgresql
  host: <%= ENV['DB_HOST'] %>
  encoding: unicode
  username: <%= ENV['DB_USERNAME'] %>
  password: <%= ENV['DB_PASSWORD'] %>
  database: <%= ENV['DB_NAME'] %>
  pool: 5

default: &default
  adapter: postgresql
  encoding: unicode
  pool: 5

development:
  <<: *default
  database: pvb_development

test:
  <<: *default
  database: pvb_test

production:
  adapter: postgresql
  host: <%= ENV['DB_HOST'] %>
  encoding: unicode
  username: <%= ENV['DB_USERNAME'] %>
  password: <%= ENV['DB_PASSWORD'] %>
  database: <%= ENV['DB_NAME'] %>
  pool: 5

Allow PostgreSQL peer authentication in development
Allow PostgreSQL peer authentication in development

Specifying the local connection as an IP address prevents peer
authentication from working. This is the default configuration on Linux.
This does not affect production, where the environment overrides this.
