I created a patch for run engine’s migrations

~

I created a patch for run engine’s migrations, it adds two Rake tasks:

  • db:migrate:engines
  • db:migrate:engines:down

The first one allows to run all the migrations stored in the db/migrate directory of each plugin. It runs migrations in the same order Rails::Initializer register the plugins, this means if you force an order by environment.rb, it will be reflected on migrations order.

Example: You have four plugins in your app: apple, bar, foo, pear.