restore accidentally lost in_batches chain

Change-Id: If4497ce5615011f9038d85b1ab76945db812e57f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/268465
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2021-07-06 13:16:34 -06:00
parent 6b27405b33
commit 992cabf3ac
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class Attachments::GarbageCollector
def delete_rows
raise "Cannot delete rows in dry_run mode" if dry_run
deleted_scope.where.not(root_attachment_id: nil).in_batches.delete_all
deleted_scope.delete_all
deleted_scope.in_batches.delete_all
end
private