79617880

Date: 2025-05-12 12:57:26
Score: 1.5
Natty:
Report link

I've had a similar question a long time ago and created this gem https://github.com/codesnik/calculate-all/

with it you can do

Model.group(:status).calculate_all(:max_id, :min_id)

It is just a convenient wrapper around pluck, though.

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: codesnik