RubyGems Navigation menu

ez_model 1.0.2

%q{ Generate models and schema.rb from existing database just in one command line. If you prefer design ER diagram and export scripts to generate database schema, or if you have to work with a legacy database, this can save you insane amount of time. All you need to do is to have a database.yml configuraiton file in ~/config/. Besides creating all models it sets proper table name and primary key if tables and columns naming doesn’t follow Rails convention. It also tries to read all foreign keys data from a database. It uses Rmre as underlying reverse engine to generate models. I made some modifications to Rmre to support mysql2 adapter, and had those auto-generated model files placed in a subfolder inside ~/app/models/ez_models/ instead of the default ~/app/models/, so that regenerating models will not overwrite the existing ones. Over the times, db schema can ge changed, all it needs is to run the command again to regenerate models, developers can feel free to add methods to the models classes in ~/app/models/ without worrying about being overwritten.}

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 1.0.9 - June 22, 2012 (62 KB)
  2. 1.0.8 - June 18, 2012 (62 KB)
  3. 1.0.7 - April 22, 2012 (62 KB)
  4. 1.0.6 - April 22, 2012 (10 KB)
  5. 1.0.5 - April 16, 2012 (10.5 KB)
  6. 1.0.2 - April 08, 2012 (10.5 KB)
Show all versions (10 total)

Runtime Dependencies (2):

activerecord >= 3.0.0
erubis ~> 2.6.6

Owners:

Authors:

  • Tianyu Huang

SHA 256 checksum:

7a411424451e2821edf6354eccd81ad68bbbb3c5db90daea8ea1ff1e6ff3e4e3

Total downloads 35,113

For this version 3,431

Licenses:

N/A

Required Ruby Version: None

Required Rubygems Version: >= 1.3.6

Links: