Update foreign key on model.