heroku restart
heroku pg:reset DATABASE
# no need to change DATABASE
heroku run rake db:migrate
# if you have seed
heroku run rake db:seed
heroku restart; heroku pg:reset DATABASE —confirm APP-NAME; heroku run rake db:migrate
Heroku doesn’t allow users from using rake db:reset
, rake db:drop
& rake db:create
command.
They only allow heroku pg:reset
and rake db:migrate
commands.
More info: https://devcenter.heroku.com/articles/rake
If you have more than 1 remote, append—remote [your_remote_name] like this:
heroku run rake db:migrate —remote dev
# dev is example remote here