development: &default
  adapter: postgresql
  database: <%= app_name %>_development
  encoding: utf8
  min_messages: warning
  pool: 2
  timeout: 5000

test:
  <<: *default
  database: <%= app_name %>_test

development: &default
  adapter: postgresql
  database: <%= app_name %>_development
  encoding: utf8
  host: localhost
  min_messages: warning
  pool: 2
  timeout: 5000

test:
  <<: *default
  database: <%= app_name %>_test

Connect to Postgres on localhost
Connect to Postgres on localhost

* Most installs listen on localhost
* Many installs do not listen on a socket
* This fixes connection errors for many users
