From 62bc66ab07760f82403fffc1cc774a02f8263502 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Wed, 4 Dec 2013 17:54:47 +0800 Subject: [PATCH] Added Rake task to update announcement category field --- lib/tasks/mobile_bulletin.rake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/tasks/mobile_bulletin.rake diff --git a/lib/tasks/mobile_bulletin.rake b/lib/tasks/mobile_bulletin.rake new file mode 100644 index 00000000..24cc7710 --- /dev/null +++ b/lib/tasks/mobile_bulletin.rake @@ -0,0 +1,8 @@ +namespace :mobile_bulletin do + task :update => :environment do + site = Site.first + site.announcement_category = [] + site.save! + puts "Activated Mobile Bulletin" + end +end \ No newline at end of file