Ruby family tree using ActiveRecord