let rake task use orbit site's environment
This commit is contained in:
parent
5382ccdd9e
commit
585397f32f
|
@ -1,7 +1,7 @@
|
||||||
desc 'Remove duplicated bulletins (announcements) created by preview'
|
desc 'Remove duplicated bulletins (announcements) created by preview'
|
||||||
|
|
||||||
namespace :bulletin do
|
namespace :bulletin do
|
||||||
task :remove_preview_bulletins do
|
task :remove_preview_bulletins => [:environment] do
|
||||||
bulletins = Bulletin.where(is_preview: true)
|
bulletins = Bulletin.where(is_preview: true)
|
||||||
bulletins.destroy_all
|
bulletins.destroy_all
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue