Commit 1a4e2c1a authored by Sean McGivern's avatar Sean McGivern

Merge branch 'has_parent' into 'master'

Re-enable has_parent optimization

Closes #212144

See merge request gitlab-org/gitlab!32827
parents a6d268b6 8c454dba
......@@ -277,7 +277,7 @@ class Namespace < ApplicationRecord
end
def has_parent?
parent.present?
parent_id.present? || parent.present?
end
def root_ancestor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment