Rails

BatchEnumerator#destroy_all To Return The Total Number Of Destroyed Records

Rails 7.2 enhances the BatchEnumerator#destroy_all to return the count of destroyed records, eliminating the need for additional queries to determine the number of affected rows.