fix migration to reference orm model