Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails gem for generating model files in one command line
JavaScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
doc
lib
.gitignore
LICENSE
README.md
ez_model.gemspec

README.md

EZModel

Automatically generate model files from database.

How to use it

1. Setup database

2. Prepare ~/config/database.yml, here is a sample:

development:
    adapter: mysql2
    reconnect: false
    database: MySchema_development
    pool: 5
    username: root
    password: "123456"
    socket: /var/run/mysqld/mysqld.sock
test:
    adapter: mysql2
    reconnect: false
    database: MySchema_test
    pool: 5
    username: root
    password: "123456"
    socket: /var/run/mysqld/mysqld.sock
production:
    adapter: mysql2
    reconnect: false
    database: MySchema_production
    pool: 5
    username: root
    password: "123456"
    socket: /var/run/mysqld/mysqld.sock

Generate models

cd to rails root directory

cd /path_to_rails_root

generate model files
it will take development as default db environment when environment is not specified

ezmodel -g

or

ezmodel -g -e development

see help

ezmodel -h

see version

ezmodel -v

Installation

gem install ez_model   

See here for more details: http://rubygems.org/gems/ez_model

Authors

Tianyu Huang
The reverse engine for generating models was created by Bosko Ivanisevic, check out https://github.com/bosko/rmre for details

Something went wrong with that request. Please try again.