OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/models/non_working_day.rb

4 lines
121 B

class NonWorkingDay < ApplicationRecord
validates :name, :date, presence: true
validates :date, uniqueness: true
end