msorc
msorc

Reputation: 917

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)

Upvotes: 0

Views: 1082

Answers (1)

ErsatzRyan
ErsatzRyan

Reputation: 3043

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

Upvotes: 1

Related Questions