Add self-join for tree structure.
Add migration for tree self-join