Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save florianmartens/9147b2888caa921d491358cd976e311c to your computer and use it in GitHub Desktop.
Save florianmartens/9147b2888caa921d491358cd976e311c to your computer and use it in GitHub Desktop.
Delete all migrations in Django
"""
Bash commands
"""
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment