Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-03 00:51:03 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-02-03 00:51:03 +0300
commit648826721f13ee4309a11638e538d96006648b39 (patch)
tree9e2cb1b728208671c4d653d32223a02d19f3fe82 /app/models/user_callout.rb
parent838cc0907c963a025553d639283b3bbf8140dae8 (diff)
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