diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-24 12:37:41 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-05-04 14:52:55 +0300 |
commit | cf37bef287d7dd5d2dce3e2276489767b8c0671f (patch) | |
tree | 8d32fa8ae4de171b3d2fa1eb11916a98efa22702 /app/models/application_setting | |
parent | 4019c8c256eae72665a2e4b1ffc68891f41f448c (diff) |
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')
-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 |