Default sort on tax_reference.

This commit is contained in:
2020-09-10 17:46:49 +01:00
parent 2f2f78776b
commit 184424bc23
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
class TaxReference < ApplicationRecord
default_scope { order(year: :desc) }
validates :year, uniqueness: true
MAX_MONTHLY_HOURS = 172