I was having a similar problem.
I checked different websites and tried what they suggested but didn't work.
Then I tried what you suggested.
rake db:create:all
and rake db:migrate
it worked for me. Thank you!
You need to create the databases first. Run rake db:create:all
Also make sure your yml file is set up correctly for postgres.
db:create:all
and db:migrate
did not work for me first.
I changed my database name from development.pg
to developmentpg
in myapp/config/database.yml
file:
database: db/developmentpg
and then rake db:create:all
and rake db:migrate
, it worked for me.
Thank you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With