FIX: Histories should be reverse chronological

This commit is contained in:
Robin Ward 2019-05-31 14:59:26 -04:00
parent 74eaa5e7ec
commit a2598632aa

View File

@ -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)