Use Sale.find_each instead of Sale.all.each