modular_migration
Rails migration files generates into relevant modular directory
Requirements
- Ruby ~> 3.0
- Rails
Installation
Include the gem in your Gemfile:
gem 'modular_migration'
Usage
Do nothing.
Example
-
Generate model
$ rails g model core/user name:string invoke active_record create app/models/core/user.rb create app/models/core.rb create db/migrate/core/user/20140324105328_create_core_users.rb
-
Generate migration
$ rails g migration AddGenderToCoreUser gender:integer invoke active_record create db/migrate/core/user/20140324105719_add_gender_to_core_user.rb
Credits
License
Copyright © 2014 Lijia Tong user_tony@163.com under The MIT License.