Skip to content

Instantly share code, notes, and snippets.

@bernardoduarte
Created February 1, 2019 21:09
Show Gist options
  • Save bernardoduarte/043b2e5e4b38339c140d41d4c2df9c36 to your computer and use it in GitHub Desktop.
Save bernardoduarte/043b2e5e4b38339c140d41d4c2df9c36 to your computer and use it in GitHub Desktop.
Undoer of all django migrations utility
python manage.py showmigrations | grep '^[^ ]' | while read line ; do python manage.py migrate $line zero ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment