From edef51d58c68aaca3b478489a30c40ce0b527b86 Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Wed, 4 Jul 2012 17:56:51 +0800 Subject: [PATCH] DM for archive bulletin categroy --- lib/tasks/data_migration.rake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/tasks/data_migration.rake b/lib/tasks/data_migration.rake index 4e5b519c..ff132c4a 100644 --- a/lib/tasks/data_migration.rake +++ b/lib/tasks/data_migration.rake @@ -9,4 +9,14 @@ namespace :data_migration do AnnouncementTag.first({conditions:{ key: 'employee' }}).update_attributes(:order=>3) AnnouncementTag.first({conditions:{ key: 'guest' }}).update_attributes(:order=>4) 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 \ No newline at end of file