Search code examples
ruby-on-railsruby-on-rails-plugins

How to uninstall Ruby on Rails plugin with migrations easily?


I have a Rails application with numbered migrations 001_..., 002_..., etc.

I have several plugins A,B,C with their own migrations 001_.., 002_... etc. How to remove the particular plugin B and clean the schema (making B plugin migrations down)


Solution

  • if they were migrated in order A B C then migrate back to A state remove Plugin B and Plugin B's migration then migrate to current

    should do the trick