Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
1e16e66d8ef7
Commit
1e16e66d
authored
Feb 13, 2018
by
Matija Čupić
Browse files
Validate project variables by scope
parent
f567006bc4e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
1e16e66d
...
...
@@ -261,7 +261,7 @@
validates
:repository_storage
,
presence:
true
,
inclusion:
{
in:
->
(
_object
)
{
Gitlab
.
config
.
repositories
.
storages
.
keys
}
}
validates
:variables
,
variable_duplicates:
true
validates
:variables
,
variable_duplicates:
{
scope: :environment_scope
}
has_many
:uploads
,
as: :model
,
dependent: :destroy
# rubocop:disable Cop/ActiveRecordDependent
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment