Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-01-31 19:52:09 +0300
committerDouwe Maan <douwe@selenight.nl>2018-02-06 21:06:38 +0300
commit75144b1e03db342730535f1f49b0e7cd2987d755 (patch)
tree30295c514e238b48a646d77c6b453e2ec44319f4 /app/models/namespace.rb
parent8d69436c901a3eee674e72c67d91de3994d30e0c (diff)
Validate path uniqueness only on Route, and bubble up appropriately
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index 44c5bb13a59..d95489ee9f2 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -32,7 +32,6 @@ class Namespace < ActiveRecord::Base
validates :owner, presence: true, unless: ->(n) { n.type == "Group" }
validates :name,
presence: true,
- uniqueness: { scope: :parent_id },
length: { maximum: 255 },
namespace_name: true