I have a self-referencing table 'Properties' and I want to build a
hierarchy of all properties starting at the lowest in the tree. What is
the best approach to this is Rails?
So how would I retrieve the related rows with ids 1,2,4 in such a way
that I can easily build a tree-like list such as: