0

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)

msorc
  • 907
  • 1
  • 7
  • 20

1 Answers1

1

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

ErsatzRyan
  • 3,033
  • 1
  • 26
  • 30
  • Any tips on exact steps to do? Thanks. – msorc Jul 15 '09 at 06:25
  • lets say you have migrations 001 002 003 for plugins A B C respectively and you want to remove plugin A rake db:migrate:down VERSION=001 go into vender/plugins and delete plugin A directory that should do it – ErsatzRyan Jul 15 '09 at 12:22