fixed error when migrations file contains an abstract class