Gem for reverse engineering an existing database using ActiveRecord
Runs the rails scaffolding command with the appropriate arguments to generate models, controllers, tests, etc from an existing database
gem 'rails_reverse_db'
bundle exec rake reverse_engineer OPTIONS
OR rake reverse_engineer OPTIONS
By default this will run rails generate scaffold TableName column:string
Copyright (c) 2012-2013 Chris McKnight and Anthony Heukmes (2009-2013). Licensed under the MIT License
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Inspired by and uses a little modified code from Anthony Heukmes Reverse Scaffold Script