Skip to content

Instantly share code, notes, and snippets.

@unflores
Created July 26, 2012 08:45
Show Gist options
  • Save unflores/3181045 to your computer and use it in GitHub Desktop.
Save unflores/3181045 to your computer and use it in GitHub Desktop.
Find the new migrations
# 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