diff --git a/lib/tasks/data_migration.rake b/lib/tasks/data_migration.rake index 4e5b519cd..ff132c4ab 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