# Model/Migration Generation from UML (XMI or similar format)

**URL:** <https://www.ruby-forum.com/t/model-migration-generation-from-uml-xmi-or-similar-format/113998>\
**Category:** Rails\
**Created:** [September 6, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/model-migration-generation-from-uml-xmi-or-similar-format/113998 "2007-09-06T23:38:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@sol](https://www.ruby-forum.com/u/sol)\
**Post date:** [September 6, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/model-migration-generation-from-uml-xmi-or-similar-format/113998/1 "2007-09-06T23:38:26Z")

</div>

Hey,

I’m modelling some apps with 40+ models at the moment, using bouml for  
the uml.

What I hate about modelling is that I have to write the generator  
commands for the migrations or models by hand. So I have to write the  
whole bunch at least twice, once for the modelling once for the actual  
generation.

Since tools like bouml, dia and others support a lot of format for  
exporting the uml diagrams, I wondered if there is a way to generate  
either rails migrations, rails models or the proper generator commands  
automatically.  
Alhtough some of these tools support code generation for a variety of  
languages, I haven’t found anything that I could use to generate  
something like the above.

My question now is, does anyone know a tool that can convert, either  
uml models, or interchange format into some predefined (templates)  
output?  
For example XMI into migrations using xslt or so …

greetings and thanks,  
Christoph
