instance method touch_all

Ruby on Rails 7.2.3

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

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.

Parameters

... req
Source
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 85
      def touch_all(...)
        sum do |relation|
          relation.touch_all(...)
        end
      end

Defined in activerecord/lib/active_record/relation/batches/batch_enumerator.rb line 85 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Batches::BatchEnumerator

Type at least 2 characters to search.

↑↓ navigate · open · esc close