Created
July 13, 2014 17:38
-
-
Save ikatson/0d586999cf102b10a167 to your computer and use it in GitHub Desktop.
Find all non-automatic 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
find . | grep 'migrations.*py$' | grep -v '__init__' | while read file; do grep -E 'Adding|Deleting|Changing' "$file" > /dev/null || echo "$file"; done | |
# or just | |
find . | grep 'migrations.*py$' | grep -v -E '__init__|auto|initial' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment