summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-02 03:07:33 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-02-02 03:07:33 +0100
commitad38e120069748049786373af1c2286cf9c849eb (patch)
tree6d181590029de741e73a6527dcd82a214d9f41c4 /app/models
parent4ff0cfe541739ead870fc9f7708db9b19e5b718c (diff)
downloadgitlab-ce-ad38e120069748049786373af1c2286cf9c849eb.tar.gz
Remove dismissed_state from Callout model
Diffstat (limited to 'app/models')
-rw-r--r--app/models/callout.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/callout.rb b/app/models/callout.rb
index b8131beb518..c8f41a39cf3 100644
--- a/app/models/callout.rb
+++ b/app/models/callout.rb
@@ -1,3 +1,6 @@
class Callout < ActiveRecord::Base
belongs_to :user
+
+ validates :user, presence: true
+ validates :feature_name, presence: true, uniqueness: { scope: :user_id }
end