Forum: Rails Engines How do I use migrations ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Gary Taylor (Guest)
on 2008-10-06 22: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
Space Ship T. (Guest)
on 2008-10-07 01: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
This topic is locked and can not be replied to.