diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-04 11:00:28 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-04 11:00:28 +0000 |
commit | 8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70 (patch) | |
tree | 40229f29ca2326a8bc9eb0fc64c623e9b1992822 /lib/tasks/migrate_plugins.rake | |
parent | a0de4c15767267ac8053a9d91e5e527a7b18088f (diff) | |
download | redmine-8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70.tar.gz redmine-8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70.zip |
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
Diffstat (limited to 'lib/tasks/migrate_plugins.rake')
-rw-r--r-- | lib/tasks/migrate_plugins.rake | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/tasks/migrate_plugins.rake b/lib/tasks/migrate_plugins.rake index 61df9c3f0..0516d8306 100644 --- a/lib/tasks/migrate_plugins.rake +++ b/lib/tasks/migrate_plugins.rake @@ -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 |