Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The problem is heroku doesn't have the migrations that you locally have, in order to have the same database version do the following migration on heroku:
To know the local db version do:
$ rake db:version
Then take the version you get locally and make sure you have it in heroku by doing the following:
$ heroku run rake --trace db:migrate VERSION=20151127134901
Explanation: Essentially the above command takes the db migration to heroku with the same version of migration you have locally.
Hope it helps!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.