Mercurial > hg > soundsoftware-site
comparison .svn/pristine/f0/f0bee1a6f97328341c5f17af5852ef8e9b541a2f.svn-base @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
1 namespace :db do | |
2 desc 'Migrates installed plugins.' | |
3 task :migrate_plugins => :environment do | |
4 if Rails.respond_to?('plugins') | |
5 Rails.plugins.each do |plugin| | |
6 next unless plugin.respond_to?('migrate') | |
7 puts "Migrating #{plugin.name}..." | |
8 plugin.migrate | |
9 end | |
10 else | |
11 puts "Undefined method plugins for Rails!" | |
12 puts "Make sure engines plugin is installed." | |
13 end | |
14 end | |
15 end |