# Engine schema modifications and migrations

**URL:** <https://www.ruby-forum.com/t/engine-schema-modifications-and-migrations/79507>\
**Category:** Engines\
**Created:** [March 10, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/engine-schema-modifications-and-migrations/79507 "2006-03-10T15:57:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![klancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f1d935/32.png) [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Post date:** [March 10, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/engine-schema-modifications-and-migrations/79507/1 "2006-03-10T15:57:55Z")

</div>

Before I strike out and try to invent something, I wanted to know if  
anybody had addressed this issue.

We are using the login/user engines to manage security, etc. We have a  
need to add columns to the user and permissions tables. Is there any  
standard way to override / augment the engine migrations _without_  
hacking those in the vendor directory? IOW, I’d like to add/override  
some migration functions in some way similar to the way we override  
views/controllers.

Any thoughts?

Keith

---

<div class="post-metadata">

**Author:** ![klancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f1d935/32.png) [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Post date:** [March 10, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/engine-schema-modifications-and-migrations/79507/2 "2006-03-10T17:05:39Z")

</div>

There’s no reason why you can’t drop or add columns to the tables  
which are created by the engine migrations - you just need to be  
careful about the order in which you migrate your systems (i.e.  
probably engines first, and then your specific application migrations  
second).

- james

On 3/10/06, Keith L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any thoughts?
> 
> Keith
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> * * *
> 
> engine-users mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org)

–

- J \*  
~
