Tuesday, June 23, 2015

PG::ConnectionBad: FATAL: Peer authentication failed for user

Specify the host in database.yml:

production:
  adapter: postgresql
  encoding: unicode
  database: postgresql
  pool: 5
  host: localhost
  username: postgresql
  password: secret