I have a rails app that is deployed to Heroku. I recently made a ton of changes, deleted old migrations, recreated new migrations, rebased and dealt with merge conflicts....the list goes on.
Now, I want to wipe my entire heroku "production" app from heroku and redeploy my code from my github
If you don't want to delete the entire application (perhaps you want to keep your add-ons and other configuration the same), you can reset the database and force update the code.
Deploy your new code, forcing the update by using the
git push heroku master -f
Drop and recreate the database:
heroku pg:reset <DATABASE>
Migrate the fresh database:
heroku run rake db:migrate