fix generating migrations