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
|
||||
desc 'Migrates installed plugins.'
|
||||
task :migrate_plugins => :environment do
|
||||
if Rails.respond_to?('plugins')
|
||||
Rails.plugins.each do |plugin|
|
||||
next unless plugin.respond_to?('migrate')
|
||||
puts "Migrating #{plugin.name}..."
|
||||
plugin.migrate
|
||||
end
|
||||
else
|
||||
puts "Undefined method plugins for Rails!"
|
||||
puts "Make sure engines plugin is installed."
|
||||
end
|
||||
end
|
||||
end
|
||||
namespace :db do
|
||||
desc 'Migrates installed plugins.'
|
||||
task :migrate_plugins => :environment do
|
||||
if Rails.respond_to?('plugins')
|
||||
Rails.plugins.each do |plugin|
|
||||
next unless plugin.respond_to?('migrate')
|
||||
puts "Migrating #{plugin.name}..."
|
||||
plugin.migrate
|
||||
end
|
||||
else
|
||||
puts "Undefined method plugins for Rails!"
|
||||
puts "Make sure engines plugin is installed."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue