ActsAsFamilyTree is a Rails plugin that gives your ActiveRecord methods and associations useful for a family tree type model.