Added Rake task to update announcement category field

This commit is contained in:
saurabhbhatia 2013-12-04 17:54:47 +08:00
parent 23071a364d
commit 62bc66ab07
1 changed files with 8 additions and 0 deletions

View File

@ -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