# Rollback Migration

> Rollback the last applied database migration (rockhopper down)

- Skill: `c9s/rollback-migration` (Agent Skill)
- Install (CLI): `npx skillmds@latest add c9s/rollback-migration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/c9s/rollback-migration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: c9s (https://skillmd.com/u/c9s)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/c9s/rollback-migration

---


Rollback the last applied migration using rockhopper.

## Steps

1. 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.
2. First show current status so the user sees what will be rolled back:
   ```bash
   rockhopper --config <config_file> status
   ```
3. Confirm with the user before proceeding.
4. Run:
   ```bash
   rockhopper --config <config_file> down
   ```
5. Report the result.

