diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-24 11:37:41 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-05-04 13:52:55 +0200 |
commit | cf37bef287d7dd5d2dce3e2276489767b8c0671f (patch) | |
tree | 8d32fa8ae4de171b3d2fa1eb11916a98efa22702 /app/models/application_setting/term.rb | |
parent | 4019c8c256eae72665a2e4b1ffc68891f41f448c (diff) | |
download | gitlab-ce-cf37bef287d7dd5d2dce3e2276489767b8c0671f.tar.gz |
Add `Term` model to keep track of terms
That way we can link a users acceptance of terms directly to a terms record.
Diffstat (limited to 'app/models/application_setting/term.rb')
-rw-r--r-- | app/models/application_setting/term.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/application_setting/term.rb b/app/models/application_setting/term.rb new file mode 100644 index 00000000000..1f3d20e2b75 --- /dev/null +++ b/app/models/application_setting/term.rb @@ -0,0 +1,5 @@ +class ApplicationSetting + class Term < ActiveRecord::Base + validates :terms, presence: true + end +end |