diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 03:07:33 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 03:07:33 +0100 |
commit | ad38e120069748049786373af1c2286cf9c849eb (patch) | |
tree | 6d181590029de741e73a6527dcd82a214d9f41c4 /app/models | |
parent | 4ff0cfe541739ead870fc9f7708db9b19e5b718c (diff) | |
download | gitlab-ce-ad38e120069748049786373af1c2286cf9c849eb.tar.gz |
Remove dismissed_state from Callout model
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/callout.rb | 3 |
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 |