Added Rake task to update announcement category field
This commit is contained in:
parent
23071a364d
commit
62bc66ab07
|
@ -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
|
Loading…
Reference in New Issue