Add order scope to milestone for publication date
This commit is contained in:
@@ -14,6 +14,9 @@ class Budget
|
||||
validates :investment, presence: true
|
||||
validates :publication_date, presence: true
|
||||
|
||||
|
||||
scope :order_by_publication_date, -> { order(publication_date: :asc) }
|
||||
|
||||
def self.title_max_length
|
||||
80
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user