diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 09:06:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 09:06:07 +0300 |
commit | 3209c1a49c14cab93eb347bfca59bace30879440 (patch) | |
tree | c9f931b477fefc1e5056380eb3370c689c2fa732 /app/models/project_snippet.rb | |
parent | 7f3bff1556594dcdc1beca40d083ba7263965e21 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/project_snippet.rb')
-rw-r--r-- | app/models/project_snippet.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_snippet.rb b/app/models/project_snippet.rb index e732c1bd86f..ffb08e10f1f 100644 --- a/app/models/project_snippet.rb +++ b/app/models/project_snippet.rb @@ -4,4 +4,5 @@ class ProjectSnippet < Snippet belongs_to :project validates :project, presence: true + validates :secret, inclusion: { in: [false] } end |