touch_all(...)
Touches records in batches. Returns the total number of rows affected.
Person.in_batches.touch_all
See Relation#touch_all for details of how each batch is touched.
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 86 def touch_all(...) sum do |relation| relation.touch_all(...) end end