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.
It looks like:
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:
Using Rails generator as usual:
$ rails generate model Core::User name:string
It will look like:
code and issue tracking: https://github.com/swordray/modular_migration
Welcome to star, fork and pull request at GitHub.