# DBDesigner4 to AR model (script)

**URL:** <https://www.ruby-forum.com/t/dbdesigner4-to-ar-model-script/52034>\
**Category:** Rails\
**Created:** [January 10, 2006, 9:53am UTC](https://www.ruby-forum.com/t/dbdesigner4-to-ar-model-script/52034 "2006-01-10T09:53:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaspar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5f8ce5/32.png) [@kaspar](https://www.ruby-forum.com/u/kaspar)\
**Post date:** [January 10, 2006, 9:53am UTC](https://www.ruby-forum.com/t/dbdesigner4-to-ar-model-script/52034/1 "2006-01-10T09:53:58Z")

</div>

Hi list,

I have hacked together a small script to generate an ActiveRecord model  
from a DBDesigner 4 ([fabForce.net](http://fabForce.net)) model file. Take it apart and feed it  
to  
the pigs ;).

the article:

> **[tua.ch - und andere Domains günstig und einfach online kaufen auf top-domains.ch](http://top-domains.ch/domain/tua.ch)**
>
> Top-Domains - Finden Sie Ihre .ch, .li, .com, .de, .at, .biz, .org, .xxx Wunschdomain.

and the script:

> **[tua.ch - und andere Domains günstig und einfach online kaufen auf top-domains.ch](http://top-domains.ch/domain/tua.ch)**
>
> Top-Domains - Finden Sie Ihre .ch, .li, .com, .de, .at, .biz, .org, .xxx Wunschdomain.

best of whishes for the new year,  
kaspar  
code manufacture & ruby lab at [tua.ch - und andere Domains günstig und einfach online kaufen auf top-domains.ch](http://www.tua.ch/ruby)

---

<div class="post-metadata">

**Author:** ![kaspar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5f8ce5/32.png) [@kaspar](https://www.ruby-forum.com/u/kaspar)\
**Post date:** [January 10, 2006, 4:04pm UTC](https://www.ruby-forum.com/t/dbdesigner4-to-ar-model-script/52034/2 "2006-01-10T16:04:32Z")

</div>

Thank you!! This saves me a couple weeks of work!! Any chance of the  
reverse – ActiveRecord to DBDesigner4?

Kaspar S. wrote:

> [tua.ch - und andere Domains günstig und einfach online kaufen auf top-domains.ch](http://tua.ch/ruby/dbmodel/compute_model.rb)

–  
M. Edward (Ed) Borasky

> **[世界杯竞猜彩票-世界杯官网竞猜（集团）有限公司](http://www.linuxcapacityplanning.com/)**
>
> 世界杯竞猜彩票一直以来遵守商业道德，世界杯官网竞猜坚持诚信为本，保证诚实经营。世界杯竞猜彩票先后成为安徽省电子商务协会理事单位、安徽省网商协会会员单位、合肥市电子商务协会理事单位、合肥市服务外包行业协会会员单位、安徽省云计算产业促进会会员单位。世界杯官网竞猜一直保持良好的技术及服务态度，更好地为客户服务。

---

<div class="post-metadata">

**Author:** ![kaspar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5f8ce5/32.png) [@kaspar](https://www.ruby-forum.com/u/kaspar)\
**Post date:** [January 10, 2006, 10:05pm UTC](https://www.ruby-forum.com/t/dbdesigner4-to-ar-model-script/52034/3 "2006-01-10T22:05:18Z")

</div>

Hi,  
My twopennyworth here - a vote for AR2DBD4. With the project I’m  
currently working on I started with a BUFD in DB4 and found the script  
to generate models from that really useful (although I’m not sure it was  
the script mentioned here). Since then I’ve dumped that design and am  
working exclusively with models. So it would be nice to have a script  
that generated the DBDesigner4 XML so that one could view the overall  
schema now and then  
Cheers,  
Eric.
