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.
Written by brian wisti
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#