summaryrefslogtreecommitdiff
path: root/app/models/term_agreement.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/term_agreement.rb')
-rw-r--r--app/models/term_agreement.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/term_agreement.rb b/app/models/term_agreement.rb
new file mode 100644
index 00000000000..8458a231bbd
--- /dev/null
+++ b/app/models/term_agreement.rb
@@ -0,0 +1,6 @@
+class TermAgreement < ActiveRecord::Base
+ belongs_to :term, class_name: 'ApplicationSetting::Term'
+ belongs_to :user
+
+ validates :user, :term, presence: true
+end