summaryrefslogtreecommitdiff
path: root/app/models/timelog.rb
blob: f768c4e3da5da4531063367de6fea5ea3ebab0d3 (plain)
1
2
3
4
5
6
class Timelog < ActiveRecord::Base
  validates :time_spent, :user, presence: true

  belongs_to :trackable, polymorphic: true
  belongs_to :user
end