diff options
Diffstat (limited to 'lib')
-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 |