The short answer is yes, it is possible. If you made a mistake during the Rails migration process, you could roll back the last migration to fix it. To do this task, you can track the version number associated with a previous migration, but the easier way will be to run a command $ bin/rails db:rollback. If you should undo several migrations, you can provide a STEP parameter, for example,$ bin/rails db:migrate:redo STEP=3, and three last migrations will be reverted.