Auto-migrate Heroku/Rails DB upon Push

I have a habit of forgetting to migrate my production database after releasing, only “remembering” when my users send me a “Hey, this stopped working…” email. To make sure this doesn’t happen again I added the following line to my Procfile.

release: bundle exec rake db:migrate

Now the database is migrated on every release, and I have stopped receiving embarrassing emails.