Add order scope to milestone for publication date

This commit is contained in:
Bertocq
2018-02-03 18:49:06 +01:00
parent 67663804c5
commit a297faec4b

View File

@@ -14,6 +14,9 @@ class Budget
validates :investment, presence: true validates :investment, presence: true
validates :publication_date, presence: true validates :publication_date, presence: true
scope :order_by_publication_date, -> { order(publication_date: :asc) }
def self.title_max_length def self.title_max_length
80 80
end end