gitlab-org--gitlab-foss/app/models/timelog.rb
2017-01-15 11:10:04 -05:00

6 lines
149 B
Ruby

class Timelog < ActiveRecord::Base
validates :time_spent, :user, presence: true
belongs_to :trackable, polymorphic: true
belongs_to :user
end