Down

Revert the last N applied migrations.

Syntax

$ vela migrate down [number]
$ vela migrate down       # revert the last one
$ vela migrate down 3     # revert the last three

The number defaults to 1 and must be a positive integer. Reverting runs each migration’s down handler, so a migration with no down handler cannot be reverted.

vela migrate rollback is an alias for this command. It reverts migrations — to put a previous release back on a server, see vela rollback.

Follow with vela sync to regenerate types, and vela migrate up to reapply when ready.