Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/seed_dump/dump_methods/enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def active_record_enumeration(records, io, options)
# If the records don't already have an order,
# order them by primary key ascending.
if !records.respond_to?(:arel) || records.arel.orders.blank?
records.order("#{records.quoted_table_name}.#{records.quoted_primary_key} ASC")
records.order(Arel.sql("#{records.quoted_table_name}.#{records.quoted_primary_key} ASC"))
end

num_of_batches, batch_size, last_batch_size = batch_params_from(records, options)
Expand Down