Generate models and schema.rb from existing(legacy) 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...

installgem install ez_model -v 1.0.6

Tianyu Huang

10,775 total downloads 1,051 for this version


gem 'ez_model', '~> 1.0.6'
  1. 1.0.9 June 21, 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 16, 2012 (10 KB)
  5. 1.0.5 April 16, 2012 (10.5 KB)
Show all versions (10 total)