Redmine-Jobs/app/models/job.rb

11 lines
159 B
Ruby

class Job < ActiveRecord::Base
validates :starts_on,
:ends_on,
:name,
presence: true
def time_logged
42
end
end