reset
calls goose down
for each applied migration, until it reaches the oldest migration.
- Useful when switching between different development branches (you can rewind WIP migrations from the previous branch and apply yours).
- Also very useful for CI tests (you can run
goose up && goose reset && goose up
to double check your migrations are in good shape in both directions.
Kudos to @smacker