Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate Models from Rails Schema

Is it possible to generate rails models from a rails schema (or migration)?

like image 353
christo16 Avatar asked Nov 11 '10 11:11

christo16


2 Answers

Have you seen this?

magic_model_generator

like image 136
allan Avatar answered Oct 17 '22 02:10

allan


Also worth trying is the "Rails-Models-Reverse-Engineering" (rmre) gem: https://github.com/bosko/rmre

like image 38
s2t2 Avatar answered Oct 17 '22 03:10

s2t2