add attribute code to the Family model