# How do I use migrations?

**URL:** <https://www.ruby-forum.com/t/how-do-i-use-migrations/150273>\
**Category:** Engines\
**Created:** [October 6, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/how-do-i-use-migrations/150273 "2008-10-06T20:21:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary\_Taylor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@Gary\_Taylor](https://www.ruby-forum.com/u/Gary_Taylor)\
**Post date:** [October 6, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/how-do-i-use-migrations/150273/1 "2008-10-06T20:21:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gary\_Taylor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@Gary\_Taylor](https://www.ruby-forum.com/u/Gary_Taylor)\
**Post date:** [October 6, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/how-do-i-use-migrations/150273/2 "2008-10-06T23:36:41Z")

</div>

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](http://engines.lighthouseapp.com/projects/10178-engines-plugin/tickets/17)

Kind regards,  
Samuel
