Changed order of jobs, removed table row id

This commit is contained in:
2024-08-02 18:46:45 +02:00
parent 5e45dd8058
commit 690ac30b7a
3 changed files with 6 additions and 5 deletions

View File

@@ -40,7 +40,8 @@ class Job < ApplicationRecord
.or(Job.where(status: %i[paid canceled])
.where('status_changed_at >= ?', Time.now.beginning_of_day))
# .in_status_order
.order(created_at: :asc)
# .order(created_at: :asc)
.order(:costumer_firstname, :costumer_lastname)
end
def fullname