Skip to content

Add reset command

Compare
Choose a tag to compare
@VojtechVitek VojtechVitek released this 07 Jul 15:04
· 497 commits to master since this release

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