This patch adds two 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,