DEV: Remove redundant rake task.

Onceoff job created in 028121b95b
This commit is contained in:
Guo Xiang Tan 2019-05-31 10:05:13 +08:00
parent 077dcc0642
commit 6a274fd2cd
1 changed files with 0 additions and 11 deletions

View File

@ -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 = []