Last Updated: February 25, 2016
·
11.22K
· psyclr

How to redo a Rails database migration

I don't often do this, and I forget that it's not explicitly mentioned at: http://guides.rubyonrails.org/migrations.html

So for migration with schema ID 20100421175455 the command would be:

rake db:migrate:redo VERSION=20100421175455

Reference: http://stackoverflow.com/a/5600310