engineer rollback [options]
Roll back active migrations.
-t, --to <file>
- Roll back all migrations after, but not including the specified
-o, --only <file>
- Roll back only the specified migration
file, ignoring all other active migrations (optional)
-s, --step <number>
- Roll back migrations in order, but stop rolling back after the maximum
numberof migrations (optional)
- Roll back, even if migrations have already been rolled back (optional)
rollback command retracts active migrations. Migrations are rolled back in reverse chronological order (newest to oldest), based on their timestamp file names.
Migrations include both
up (deployment) and
down (retraction) methods. The
rollback command executes only the
down method of each active migration. Learn more about migrations in the Migrations API documentation.