From a2598632aab84a86a756a652f383aa131ae0b285 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 31 May 2019 14:59:26 -0400 Subject: [PATCH] FIX: Histories should be reverse chronological --- app/models/reviewable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/reviewable.rb b/app/models/reviewable.rb index 7c432845a50..00a9eb911d5 100644 --- a/app/models/reviewable.rb +++ b/app/models/reviewable.rb @@ -30,7 +30,7 @@ class Reviewable < ActiveRecord::Base belongs_to :category has_many :reviewable_histories - has_many :reviewable_scores + has_many :reviewable_scores, -> { order(created_at: :desc) } after_create do log_history(:created, created_by)