Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DianaEromosele/0f190e1f7967cc6634aeb479d6c4dfbe to your computer and use it in GitHub Desktop.
Save DianaEromosele/0f190e1f7967cc6634aeb479d6c4dfbe to your computer and use it in GitHub Desktop.
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