9 lines
223 B
Ruby
9 lines
223 B
Ruby
|
desc 'Remove duplicated curation posts created by preview'
|
||
|
|
||
|
namespace :curation do
|
||
|
task :remove_preview_curation_posts => [:environment] do
|
||
|
posts = CurationPost.where(is_preview: true)
|
||
|
posts.destroy_all
|
||
|
end
|
||
|
end
|