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

9 lines
214 B
Ruby
Raw Normal View History

class TermAgreement < ActiveRecord::Base
belongs_to :term, class_name: 'ApplicationSetting::Term'
belongs_to :user
scope :accepted, -> { where(accepted: true) }
validates :user, :term, presence: true
end