PG::ConnectionBad: FATAL: Peer authentication failed for user 'username' error
问题 When I try to connect to my pg database using User.connection or generic-table.connection I get this error PG::ConnectionBad: FATAL: Peer authentication failed for user 'username' I double checked my database.yml and it looks good. I think the problem lies with my pg_bha.conf file? I can not find this file in my app or my system right now. database.yml development: adapter: postgresql encoding: utf8 database: project_development pool: 5 username: password: test: &TEST adapter: postgresql