ここで述べたように、私は Model.find_each を実装しています:
http://edgeguides.rubyonrails.org/active_record_querying.html#retrieving-multiple-objects-in-batches
しかし、私はこのエラーメッセージを受け取っています:
Ruby ActiveRecord: DEPRECATION WARNING: Relation#find_in_batches with finder options is deprecated. Please build a scope and then call find_in_batches on it instead.
このコードの場合:
Person.find_each(start: start_index, limit: limit) do |person|
ドキュメントに記載されているコードにほとんど従っているので、少し戸惑っています。このコードは正しいですか? そうでない場合、修正は何ですか?