diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-01-31 10:52:09 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-02-06 12:06:38 -0600 |
commit | 75144b1e03db342730535f1f49b0e7cd2987d755 (patch) | |
tree | 30295c514e238b48a646d77c6b453e2ec44319f4 /app/models/namespace.rb | |
parent | 8d69436c901a3eee674e72c67d91de3994d30e0c (diff) | |
download | gitlab-ce-75144b1e03db342730535f1f49b0e7cd2987d755.tar.gz |
Validate path uniqueness only on Route, and bubble up appropriately
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 1 |
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 |