Started with operator index
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user