summaryrefslogtreecommitdiff
path: root/app/models/user_callout.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-02 22:51:03 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-02-02 22:51:03 +0100
commit648826721f13ee4309a11638e538d96006648b39 (patch)
tree9e2cb1b728208671c4d653d32223a02d19f3fe82 /app/models/user_callout.rb
parent838cc0907c963a025553d639283b3bbf8140dae8 (diff)
downloadgitlab-ce-648826721f13ee4309a11638e538d96006648b39.tar.gz
Rename Callout to UserCallout
Diffstat (limited to 'app/models/user_callout.rb')
-rw-r--r--app/models/user_callout.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/user_callout.rb b/app/models/user_callout.rb
new file mode 100644
index 00000000000..8b31aa6fa5c
--- /dev/null
+++ b/app/models/user_callout.rb
@@ -0,0 +1,6 @@
+class UserCallout < ActiveRecord::Base
+ belongs_to :user
+
+ validates :user, presence: true
+ validates :feature_name, presence: true, uniqueness: { scope: :user_id }
+end