Project

ez_model

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Automatically generate model files from database.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.0
>= 2.6.6
 Project Readme

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