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

Remove changes unnecessary changes from namespace model

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