mirror of
https://github.com/redmine/redmine.git
synced 2024-08-25 06:06:27 +02:00
set svn:eol-style native lib/tasks/migrate_plugins.rake
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9070 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a0de4c1576
commit
8db9ffbd8b
@ -1,15 +1,15 @@
|
|||||||
namespace :db do
|
namespace :db do
|
||||||
desc 'Migrates installed plugins.'
|
desc 'Migrates installed plugins.'
|
||||||
task :migrate_plugins => :environment do
|
task :migrate_plugins => :environment do
|
||||||
if Rails.respond_to?('plugins')
|
if Rails.respond_to?('plugins')
|
||||||
Rails.plugins.each do |plugin|
|
Rails.plugins.each do |plugin|
|
||||||
next unless plugin.respond_to?('migrate')
|
next unless plugin.respond_to?('migrate')
|
||||||
puts "Migrating #{plugin.name}..."
|
puts "Migrating #{plugin.name}..."
|
||||||
plugin.migrate
|
plugin.migrate
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
puts "Undefined method plugins for Rails!"
|
puts "Undefined method plugins for Rails!"
|
||||||
puts "Make sure engines plugin is installed."
|
puts "Make sure engines plugin is installed."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user