diff --git a/app/models/project.rb b/app/models/project.rb index 6c0fae53..6b714346 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -24,6 +24,7 @@ class Project < ApplicationRecord validates :name, presence: true, uniqueness: { case_sensitive: false } validates_with ClientBillableValidator + validates :description, presence: true has_many :hours has_many :mileages has_many :users, -> { distinct }, through: :hours