Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
c1f064cb
Commit
c1f064cb
authored
Nov 06, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unique validation from external_url in Environment
parent
1d5f2f9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
app/models/environment.rb
app/models/environment.rb
+0
-1
spec/models/environment_spec.rb
spec/models/environment_spec.rb
+0
-1
No files found.
app/models/environment.rb
View file @
c1f064cb
...
...
@@ -30,7 +30,6 @@ class Environment < ActiveRecord::Base
message:
Gitlab
::
Regex
.
environment_slug_regex_message
}
validates
:external_url
,
uniqueness:
{
scope: :project_id
},
length:
{
maximum:
255
},
allow_nil:
true
,
addressable_url:
true
...
...
spec/models/environment_spec.rb
View file @
c1f064cb
...
...
@@ -18,7 +18,6 @@ describe Environment do
it
{
is_expected
.
to
validate_length_of
(
:slug
).
is_at_most
(
24
)
}
it
{
is_expected
.
to
validate_length_of
(
:external_url
).
is_at_most
(
255
)
}
it
{
is_expected
.
to
validate_uniqueness_of
(
:external_url
).
scoped_to
(
:project_id
)
}
describe
'.order_by_last_deployed_at'
do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
...
...
Write
Preview
Markdown
is supported
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