Fix orm related bug in annotation creating migration (0019)