summaryrefslogtreecommitdiff
path: root/app/models/term_agreement.rb
blob: a4a9dc102822584c54e07318053e4b215f21ffe2 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class TermAgreement < ApplicationRecord
  belongs_to :term, class_name: 'ApplicationSetting::Term'
  belongs_to :user

  scope :accepted, -> { where(accepted: true) }

  validates :user, :term, presence: true
end