@@ -37,6 +37,7 namespace :db do | |||||
37 | desc 'Migrate plugins to current status.' |
|
37 | desc 'Migrate plugins to current status.' | |
38 | task :plugins => :environment do |
|
38 | task :plugins => :environment do | |
39 | Engines.plugins.each do |plugin| |
|
39 | Engines.plugins.each do |plugin| | |
|
40 | next unless plugin.respond_to?(:migration_directory) | |||
40 | next unless File.exists? plugin.migration_directory |
|
41 | next unless File.exists? plugin.migration_directory | |
41 | puts "Migrating plugin #{plugin.name} ..." |
|
42 | puts "Migrating plugin #{plugin.name} ..." | |
42 | plugin.migrate |
|
43 | plugin.migrate |
General Comments 0
You need to be logged in to leave comments.
Login now