Started with operator index

This commit is contained in:
2024-08-12 04:22:54 +02:00
parent e53fffdb8d
commit a3373e0288
5 changed files with 70 additions and 28 deletions

View File

@@ -45,7 +45,7 @@ class Job < ApplicationRecord
.where("status_changed_at >= ?", Time.now.beginning_of_day))
# .in_status_order
.order(created_at: :desc)
.order(:costumer_firstname, :costumer_lastname)
#.order(:costumer_firstname, :costumer_lastname)
.with_attached_pdf # scope from activestorage for .includes(pdf_attachment: :blob)
# .references(:pdf_attachment, :blob) # creates big join table
end