We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2475fb4 commit 5b69b55Copy full SHA for 5b69b55
lib/safe-pg-migrations/helpers/batch_over.rb
@@ -19,11 +19,11 @@ def each_batch
19
def next_batch
20
return if endless?
21
22
- first = next_scope.select(primary_key).take
+ first = next_scope.take
23
24
return unless first
25
26
- last = next_scope.select(primary_key).offset(@of).take
+ last = next_scope.offset(@of).take
27
28
first_key = first[primary_key]
29
last_key = last.nil? ? nil : last[primary_key]
0 commit comments