How to uninstall Ruby on Rails plugin with migrations easily?
-
13-09-2019 - |
Question
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow