提交 325908ad 编写于 作者: G Grzegorz Bizon

Remove changes unnecessary changes from namespace model

上级 e9d5e95c
......@@ -113,8 +113,8 @@ class Namespace < ActiveRecord::Base
end
def move_dir
if any_project_has_container_registry_images?
raise Gitlab::UpdatePathError.new('Namespace cannot be moved, because at least one project has images in container registry')
if any_project_has_container_registry_tags?
raise Gitlab::UpdatePathError.new('Namespace cannot be moved, because at least one project has tags in container registry')
end
# Move the namespace directory in all storages paths used by member projects
......@@ -149,7 +149,7 @@ class Namespace < ActiveRecord::Base
end
end
def any_project_has_container_registry_images?
def any_project_has_container_registry_tags?
projects.any?(&:has_container_registry_tags?)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册