DM for archive bulletin categroy
This commit is contained in:
parent
32480e10ed
commit
edef51d58c
|
@ -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
|
Loading…
Reference in New Issue