new generate_migration for mongoDB