annotate .svn/pristine/f0/f0bee1a6f97328341c5f17af5852ef8e9b541a2f.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 namespace :db do
Chris@909 2 desc 'Migrates installed plugins.'
Chris@909 3 task :migrate_plugins => :environment do
Chris@909 4 if Rails.respond_to?('plugins')
Chris@909 5 Rails.plugins.each do |plugin|
Chris@909 6 next unless plugin.respond_to?('migrate')
Chris@909 7 puts "Migrating #{plugin.name}..."
Chris@909 8 plugin.migrate
Chris@909 9 end
Chris@909 10 else
Chris@909 11 puts "Undefined method plugins for Rails!"
Chris@909 12 puts "Make sure engines plugin is installed."
Chris@909 13 end
Chris@909 14 end
Chris@909 15 end