Provides a uniqueness validator for objects that are ordered in a tree using the ancestry gem.