[Ruby] Cancel Ruby on Rails migration

less than 1 minute read

Cancel the latest migration

The command to cancel the latest migration is

rollback

```rails db

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.