diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-04-30 21:06:11 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-01 12:14:24 +0300 |
commit | 2e2a63c8669a084ed3a3aa5e770158ea2cb43a9d (patch) | |
tree | 3dd6be25223a6fb48c0119a55b62efccade19680 /lib/gitlab/database/rename_reserved_paths_migration/v1 | |
parent | 08b1bc3489e8d4e6d5786221bad090f16a1c021f (diff) |
Rename child namespaces in migrationhelpers
Diffstat (limited to 'lib/gitlab/database/rename_reserved_paths_migration/v1')
-rw-r--r-- | lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb index d863de90844..b9f4f3cff3c 100644 --- a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb +++ b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb @@ -13,7 +13,7 @@ module Gitlab def namespaces_for_paths(type:) namespaces = case type - when :wildcard + when :child MigrationClasses::Namespace.where.not(parent_id: nil) when :top_level MigrationClasses::Namespace.where(parent_id: nil) |