The command to cancel the latest migration is
rollback
# Cancel a specific migration
If you want to cancel a specific migration
#### **`rails db:migrate:status`**
Check the Migration ID of the migration file you want to cancel with ** rails db: migrate: down VERSION = Migration ID of the migration file you want to cancel ** To execute.
Recommended Posts