A platform for community discussion. Free, open, simple.
DEV: remove unused method (rake task deleted in 6a274fd)
Arpit Jalan388433ec0671
diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rakeindex c338eccf4ed..bc83af2e7d4 100644--- a/lib/tasks/posts.rake+++ b/lib/tasks/posts.rake@@ -506,27 +506,6 @@ task 'posts:missing_uploads', [:single_site] => :environment do |_, args|endend-def destroy_old_data_exports- topics = Topic.with_deleted.where(<<~SQL, 2.days.ago)- slug LIKE '%-export-complete' AND- archetype = 'private_message' AND- posts_count = 1 AND- created_at < ? AND- user_id = -1- SQL-- puts "Found #{topics.count} old CSV data exports on #{RailsMultisite::ConnectionManagement.current_db}, destroying"- puts- topics.each do |t|- Topic.transaction do- t.posts.first.destroy!- t.destroy!- print "."- end- end- puts "done"-end-def recover_uploads_from_index(path)lookup = []