curation/lib/tasks/curation_tasks.rake

9 lines
223 B
Ruby
Raw Normal View History

2025-05-07 14:25:46 +00:00
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