Changing id's type of models