generate migrations, follow refacto core