gitlab-org--gitlab-foss/app/models/timelog.rb

7 lines
149 B
Ruby
Raw Normal View History

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