Skip to content

Commit

Permalink
Merge pull request #15 from r7kamura/batch-fix-example-code
Browse files Browse the repository at this point in the history
Fix wrong method name in example: within_in_batches -> in_batches
  • Loading branch information
r7kamura committed Jan 27, 2024
2 parents 5a320f2 + 0700796 commit d82c4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/migration/batch_in_batches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Migration
# disable_ddl_transaction!
#
# def up
# User.within_in_batches do |relation|
# User.in_batches do |relation|
# relation.update_all(some_column: 'some value')
# end
# end
Expand Down

0 comments on commit d82c4c2

Please sign in to comment.