Handle raw models with migrations