RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Rails migration files generate into corresponding modular directories

In a Ruby on Rails project, all migration files generate into the same directory db/migrate. It's enough for simple projects, but not that good for large modulized projects. It is inconvenient to review thousands of files in the same directory for one project.

Since MVC directories are modular, the migration directory should the same. It's expected to be structured and clear. That's the reason I release the gem modular_migration. Just include it in your Gemfile and using Rails generator as usual.

Source code and issue tracking: https://github.com/swordray/modular_migration. Welcome to star, fork and pull request at GitHub.

Comments

Redo your submission with a smaller summarywbailey - July 04, 2014 08:42
@wbally I have rewrited it.swordray - July 04, 2014 08:57

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!