No commit activity in last 3 years
No release in over 3 years
Rails migration files generates into relevant modular directory.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

modular_migration

Gem Version Build Status DependencyStatus Code Climate

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.