From 6a274fd2cd8512bf384d7e4f67903dde3d63f366 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 31 May 2019 10:05:13 +0800 Subject: [PATCH] DEV: Remove redundant rake task. Onceoff job created in 028121b95b982500e0c63b11d216a6162d47a7bb --- lib/tasks/posts.rake | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index 7f79fed3d4..c338eccf4e 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -527,17 +527,6 @@ def destroy_old_data_exports puts "done" end -desc 'destroys all user archive PMs (they may contain broken images)' -task 'posts:destroy_old_data_exports' => :environment do - if RailsMultisite::ConnectionManagement.current_db != "default" - destroy_old_data_exports - else - RailsMultisite::ConnectionManagement.each_connection do - destroy_old_data_exports - end - end -end - def recover_uploads_from_index(path) lookup = []