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
Written by Matthew Lenton
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#