debian-mirror-gitlab/app/models/term_agreement.rb
2018-11-18 11:00:15 +05:30

10 lines
245 B
Ruby

# frozen_string_literal: true
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