Rails migration pushing issues
Say you deleted a migration so when you push all your migration histories to heroku
it gives you migration errors.
You can type
This will give you history of migrations and whats missing,
Status Migration ID Migration Name
up 20150207013411 ********** NO FILE **********
up 20150207020939 Create users
up 20150207021329 Add user id to posts
up 20150207022740 Create comments
up 20150207023755 Create categories
up 20150207063021 Add columns to users
up 20150207075531 Create post categories
up 20150208061306 Add column to posts
up 20150217172541 Add pass word digest to users
up 20150305203015 Create votes
up 20150309223946 Add column to comments
down 20150313162219 Create posts
you can then copy that migration ID and create a new file in your migrations with that migration ID number, and code inside the file.
This will put that code in the proper place so you can run migrations smoothly on heroku or locally.