1### Source: https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html
2
3# Delete migrations
4find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
5find . -path "*/migrations/*.pyc" -delete
6
7# Drop database
8# (delete db.sqlite3 or see https://stackoverflow.com/questions/34576004/simple-way-to-reset-django-postgresql-database
9
10# Create migrations and generate DB schema
11./manage.py makemigrations
12./manage.py migrate
1$ python manage.py migrate --fake YourApp zero
2# This will Reverse all migerations in YourApp