I am using rails with figaro for configuration, database user with the name test.
I have a DATABASE_URL
in application.yml
DATABASE_URL: "postgresql://localhost/database_name?user=test"
When I run a
rake db:migrate
I get the following error
PG::ConnectionBad: fe_sendauth: no password supplied
Check
config/database.yml
to ensure your password is wired up for postgresql adapter.it should look something like this:
pg_password
should be defined in your figaro config, where it becomes accessible as an environment variable.