DM for archive bulletin categroy

This commit is contained in:
Matthew K. Fu JuYuan 2012-07-04 17:56:51 +08:00
parent 32480e10ed
commit edef51d58c
1 changed files with 10 additions and 0 deletions

View File

@ -9,4 +9,14 @@ namespace :data_migration do
AnnouncementTag.first({conditions:{ key: 'employee' }}).update_attributes(:order=>3) AnnouncementTag.first({conditions:{ key: 'employee' }}).update_attributes(:order=>3)
AnnouncementTag.first({conditions:{ key: 'guest' }}).update_attributes(:order=>4) AnnouncementTag.first({conditions:{ key: 'guest' }}).update_attributes(:order=>4)
end end
task :add_archive_func_to_bulletin_category_0704 => :environment do
BulletinCategory.all.each{|bc| bc.disable=false;bc.save!}
end
task :add_archive_func_to_news_bulletin_category_0704 => :environment do
NewsBulletinCategory.all.each{|bc| bc.disable=false;bc.save!}
end
end end