Mercurial > hg > soundsoftware-site
annotate .svn/pristine/f0/f0bee1a6f97328341c5f17af5852ef8e9b541a2f.svn-base @ 1478:5ca1f4a47171 bibplugin_db_migrations
Close obsolete branch bibplugin_db_migrations
| author | Chris Cannam |
|---|---|
| date | Fri, 30 Nov 2012 14:40:50 +0000 |
| parents | cbb26bc654de |
| children |
| rev | line source |
|---|---|
| Chris@909 | 1 namespace :db do |
| Chris@909 | 2 desc 'Migrates installed plugins.' |
| Chris@909 | 3 task :migrate_plugins => :environment do |
| Chris@909 | 4 if Rails.respond_to?('plugins') |
| Chris@909 | 5 Rails.plugins.each do |plugin| |
| Chris@909 | 6 next unless plugin.respond_to?('migrate') |
| Chris@909 | 7 puts "Migrating #{plugin.name}..." |
| Chris@909 | 8 plugin.migrate |
| Chris@909 | 9 end |
| Chris@909 | 10 else |
| Chris@909 | 11 puts "Undefined method plugins for Rails!" |
| Chris@909 | 12 puts "Make sure engines plugin is installed." |
| Chris@909 | 13 end |
| Chris@909 | 14 end |
| Chris@909 | 15 end |
