Skip to content

Replace Namespace#root_ancestor

After we remove the sync_traversal_ids and linear_groups feature flags we can replace the Namespace#root_ancestor method with the following:

def root_ancestor
  root_traversal_id = unscoped.where(id: id).select('traversal_ids[1]')
  unscoped.find_by(id: root_traversal_id)
end