Created
October 5, 2016 03:57
-
-
Save DianaEromosele/0f190e1f7967cc6634aeb479d6c4dfbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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