🟪 Heroku
Code Reset

Updated at 2016-06-19 12:32

How to reset Heroku Ruby on Rails app code/db using the repo plugin.

heroku repo:reset -a my-app-name
git push my-app-repository some-branch:master

heroku pg:info -r git-remote-name
heroku pg:reset DATABASE -a git-remote-name
# then...
heroku run rake db:schema:load -a git-remote-name
# if that don't work or you want to test the migrations:
heroku run rake db:migrate -a git-remote-name