Use ancestry instead of acts_as_tree