How to rollback a specific migration?

Technology CommunityCategory: Ruby on RailsHow to rollback a specific migration?
VietMX Staff asked 3 years ago
rake db:rollback STEP=1

s a way to do this, if the migration you want to rollback is the last one applied. You can substitute 1 for however many migrations you want to go back.

rake db:migrate:down VERSION=20100905201547

will roll back the specific file.