Welcome to mirror list, hosted at ThFree Co, Russian Federation.

term_agreement.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b3c8ac68bd3e43c52190749119cf0ace3f3e15d (plain)
1
2
3
4
5
6
7
8
9
10
# 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