delete migrations django and start over deployment heroku
First, navigate to your Django project directory in your terminal.
Delete the migrations folder in each app of your Django project by using the command:
find . -path "/migrations/.py" -not -name "__init__.py" -delete
Now, you'll need to delete the database file, which is usually named
db.sqlite3
:rm db.sqlite3
After that, recreate the initial migrations for each app with the following command:
python manage.py makemigrations
Apply the migrations to the database using:
python manage.py migrate
Finally, you can push the changes to Heroku and deploy your Django application.