Skip to content

Reverse engineer existing databases and generate migrations, models, or scaffolding

License

Notifications You must be signed in to change notification settings

mithucste30/rails-reverse-db

Repository files navigation

Rails Reverse DB

Gem Version Build Status Code Climate

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

Installation

gem 'rails_reverse_db'

Usage

bundle exec rake reverse_engineer OPTIONS OR rake reverse_engineer OPTIONS

By default this will run rails generate scaffold TableName column:string

Copyright

Copyright (c) 2012-2013 Chris McKnight and Anthony Heukmes (2009-2013). Licensed under the MIT License

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Thanks

Inspired by and uses a little modified code from Anthony Heukmes Reverse Scaffold Script

About

Reverse engineer existing databases and generate migrations, models, or scaffolding

Resources

License

Stars

Watchers

Forks

Packages

No packages published