Based on Scenario 2 from: https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html
Note: This is different to squashing migrations and a potential destructive operation if done wrong!
On your local development machine, with the current database schema:
- Prepare a git branch
