Register restraint with the model.