RubyFlow The Ruby and Rails community linklog

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 summary

@wbally I have rewrited it.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in