usunyu   Stay hungry. Stay foolish.

How to reset Django migrations

Remove the all migrations files within your project:

Go through each of your projects apps migration folder and remove everything inside, except the file.

Or if you are using a unix-like OS you can run the following script (inside your project dir):

$ find . -path "*/migrations/*.py" -not -name "" -delete
$ find . -path "*/migrations/*.pyc"  -delete

Drop the current database, or delete the db.sqlite3 if it is your case.

Create the initial migrations and generate the database schema:

$ python makemigrations
$ python migrate

And you are good to go.