This is my database.yml:
development:
adapter: postgresql
database: myUsername
username: myUsername
password: myPassword
host: localhost
So, when I go to my local page, no errors are shown. If I change password in database.yml to something incorrect, I get
PG::ConnectionBad: FATAL: password authentication failed for user "myUsername" FATAL: password authentication failed for user "myUsername"
error. Therefore, my password is right.
But still, when I run
rake db:migrate
I get errors no matter if my password is right or wrong. If it's right, I get the following error:
PG::ConnectionBad: fe_sendauth: no password supplied
If it's wrong, I get the same error as on my local page:
PG::ConnectionBad: FATAL: password authentication failed for user "myUsername" FATAL: password authentication failed for user "myUsername"
What causes it to think that correct password is "not supplied"? Please, any help or information is appreciated, I've been messing with it for two days now.