How do I use migrations?


#1

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


#2

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-engines-plugin/tickets/17

Kind regards,
Samuel