Adds required option to relationships.