Created
July 26, 2012 08:45
-
-
Save unflores/3181045 to your computer and use it in GitHub Desktop.
Find the new migrations
This file contains 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
# can't diff two directories, make a file with the contents of the migrations dir before and after the previous deploy to find out what migrations need to be made for the next deploy | |
git ls-tree -r origin/master:db/migrate > migrations_last_deploy | |
git ls-tree -r origin/develop:db/migrate > migrations_current_branch | |
diff migrations_last_deploy migrations_current_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment