Skip to content

rafaelp/dbdesigner_generators

Repository files navigation

DBDesigner Generators

DESCRIPTION

This gem generates ActiveRecord Migration files from a DB Designer 4 xml file.

REQUIREMENTS

  • activerecord

INSTALLATION

$ sudo gem sources -a http://gems.github.com (you only have to do this once)
$ sudo gem install rafaelp-dbdesigner_generators

USAGE

Save you model in db/dbdesigner_model.xml, then run:

$ ruby script/generate dbdesigner_migration [MigrationName] [only|except] [table1] [table2] [table3]

Example 1

$ ruby script/generate dbdesigner_migration CompleteDatabase

Example 2

$ ruby script/generate dbdesigner_migration CreateAccountsAndUsers only accounts users

Example 3

$ ruby script/generate dbdesigner_migration CreateOtherTables except accounts users

Tricks

You can put the magical keyword ignore on first line of table comments, on your model at DB Designer, to automatically ignore the table on migration generation.

LICENSE

DBDesigner Generators is released under the MIT License.

AUTHOR

Rafael Lima

Working at BielSystems and Myfreecomm

Blog: http://rafael.adm.br

Podcast: http://rafael.adm.br/voltandopracasa

Github: http://github.com/rafaelp

Twitter: http://twitter.com/rafaelp

Did you like?

Recommend me at Working With Rails

About

This gem generates ActiveRecord Migration files from a DB Designer 4 xml file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages