about summary refs log tree commit diff
path: root/app/models/web/setting.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/web/setting.rb')
-rw-r--r--app/models/web/setting.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/web/setting.rb b/app/models/web/setting.rb
new file mode 100644
index 000000000..3d601189b
--- /dev/null
+++ b/app/models/web/setting.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class Web::Setting < ApplicationRecord
+  belongs_to :user
+
+  validates :user, uniqueness: true
+end