summaryrefslogtreecommitdiff
path: root/app/models/approver.rb
blob: f06c53026ba5363344f8ea7c5c636e37637f69b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# == Schema Information
#
# Table name: approvers
#
#  id          :integer          not null, primary key
#  target_id   :integer          not null
#  target_type :string(255)
#  user_id     :integer          not null
#  created_at  :datetime
#  updated_at  :datetime
#

class Approver < ActiveRecord::Base
  belongs_to :target, polymorphic: true
  belongs_to :user

  validates :user, presence: true
end