Forum: Rails Engines How do I use migrations ?

Posted by Gary Taylor (Guest)
on 2008-10-06 20:21
(Received via mailing list)
Hi,
  I have been using engines for a month or so and have been using the
migration generator which simply puts a migration in the normal place
which then asks the relevant engines plugin to do the migration.
But, if my plugin needs say a field adding to a table, if I then add a
new migration to the plugin and do rake db:migrate, nothing happens -
everything is up to date.
If I run the generator again, it will generate a new migration which
conflicts with the original - it migrates the plugin from zero to the
latest - where surely it should migrate it from the previous version
to the latest ?

Any ideas ?

Thanks

Gary
Posted by Space Ship Traveller (Guest)
on 2008-10-06 23:36
(Received via mailing list)
Hi,

I'm currently trying to get a patch accepted which resolves the problem.

Feel free to try it out.

http://engines.lighthouseapp.com/projects/10178-en...

Kind regards,
Samuel
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.