| name | rollback-migration |
| description | Rollback the last applied database migration (rockhopper down) |
| disable-model-invocation | true |
| argument-hint | ["config_file"] |
Rollback the last applied migration using rockhopper.
Steps
- If
$ARGUMENTS is provided, use it as the config file path. Otherwise, find all rockhopper_*.yaml config files and ask the user which one to use.
- First show current status so the user sees what will be rolled back:
rockhopper --config <config_file> status
- Confirm with the user before proceeding.
- Run:
rockhopper --config <config_file> down
- Report the result.