Skip to content
Snippets Groups Projects
Commit a8ba291b authored by ysksn's avatar ysksn Committed by Eugen Rochko
Browse files

Fix scope latest of ReportNote (#9630)

parent 0c1e4bb9
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ class ReportNote < ApplicationRecord
belongs_to :account
belongs_to :report, inverse_of: :notes, touch: true
scope :latest, -> { reorder('created_at ASC') }
scope :latest, -> { reorder(created_at: :desc) }
validates :content, presence: true, length: { maximum: 500 }
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment