assign ids to child of has_many relation