From 01bafc18583d05f49d9a6356557d7ff9a7682875 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 27 Jul 2020 07:51:19 -0500 Subject: [Bug] AccountConversation already covered by Conversation pruning in DatabaseCleanupScheduler --- app/workers/scheduler/database_cleanup_scheduler.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'app') diff --git a/app/workers/scheduler/database_cleanup_scheduler.rb b/app/workers/scheduler/database_cleanup_scheduler.rb index 8910d6831..dfc40959d 100644 --- a/app/workers/scheduler/database_cleanup_scheduler.rb +++ b/app/workers/scheduler/database_cleanup_scheduler.rb @@ -7,7 +7,6 @@ class Scheduler::DatabaseCleanupScheduler def perform Conversation.left_outer_joins(:statuses).where(statuses: { id: nil }).destroy_all - AccountConversation.left_outer_joins(:statuses).where(statuses: { id: nil }).destroy_all Tag.left_outer_joins(:statuses).where(statuses: { id: nil }).destroy_all StatusStat.left_outer_joins(:statuses).where(statuses: { id: nil }).destroy_all Setting.rewhere(thing_type: 'User').where.not(thing_id: User.select(:id)).destroy_all -- cgit