- Step 1:
heroku restart - Step 2:
heroku pg:reset DATABASE(do not change theDATABASE) - Step 3:
heroku run rails db:migrate - Step 4:
heroku run rails db:seed
Note
If you have more than one remote repository, then append in the end of each command --remote [name_of_the_remote] like this:
heroku run rails db:migrate --remote staging (staging is an example of the remote)