> For the complete documentation index, see [llms.txt](https://sprnva.gitbook.io/sprnva-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sprnva.gitbook.io/sprnva-docs/migration/rollback.md).

# ROLLBACK

This will rollback 1 step down base on last batch number. This will use the `"down"` option in your migration file. This is how the rollback button process the migration:

* ensure database repository exist
* we get the completed migrations on our database repository base on the last batch number
* then we build the schema of the completed migrations
* after that, we remove the migrations from the database repository
