class ActiveRecord::Batches::BatchEnumerator

def touch_all(...)

See Relation#touch_all for details of how each batch is touched.

Person.in_batches.touch_all

Touches records in batches. Returns the total number of rows affected.
def touch_all(...)
  sum do |relation|
    relation.touch_all(...)
  end
end