delete migrations django and start over deployment heroku

  1. First, navigate to your Django project directory in your terminal.

  2. Delete the migrations folder in each app of your Django project by using the command: find . -path "/migrations/.py" -not -name "__init__.py" -delete

  3. Now, you'll need to delete the database file, which is usually named db.sqlite3: rm db.sqlite3

  4. After that, recreate the initial migrations for each app with the following command: python manage.py makemigrations

  5. Apply the migrations to the database using: python manage.py migrate

  6. Finally, you can push the changes to Heroku and deploy your Django application.