- Pune
- @_akshay_b
Pinned Loading
-
Introduce find_in_batches_with_order...
Introduce find_in_batches_with_order for having find in batches with order 1# Create file config/initializers/find_in_batches_with_order.rb with follwing code.
2ActiveRecord::Batches.class_eval do
3## Only flat order structure is supported now
4## example: [:forename, :surname] is supported but [:forename, {surname: :asc}] is not supported
5def find_in_batches_with_order(ids: nil, order: [], batch_size: 1000)
-
-
mina-deploy/mina
mina-deploy/mina PublicBlazing fast deployer and server automation tool
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.