I have started to learn using heroku and i was trying to execute bundle exec rake db:create db:migrate command, i have encountered the following errors,
bundle exec rake db:create db:migrate
When you add the Heroku Postgres add-on (or simply push a rails app to Heroku, and a dev one is added for you), a database is created for you.
Do not fun db:create on Heroku Postgres, it's already created. You can skip to db:migrate, et. al
db:create
db:migrate