Last Updated: February 25, 2016
·
2.457K
· brianwisti

Restart Heroku after a migration

Don't forget to restart your heroku Rails app after you run a migration. Otherwise you'll be staring at forms that look right but don't save.

$ heroku run rake db:migrate
$ heroku restart

It says it right there in the documentation, but if I don't make a note I'll forget again.

1 Response
Add your response

I had this problem many times, so I just added an alias for that:

git push production master && heroku run rake db:migrate && heroku restart
over 1 year ago ·