ninja-core/src/main/java/ninja/migrations/MigrationInitializer.java
@Start(order=9)
    public void start() {
        // Run migration only when activated in configuration.conf:
        Boolean runMigrations = ninjaProperties.getBoolean(NinjaConstant.NINJA_MIGRATION_RUN);
        
        if (runMigrations != null && runMigrations) {
            // provider used for late binding
            migrationEngineProvider.get().migrate();
        }
    }
@Start(order=9)
    public void start() {
        // Run migration only when activated in configuration.conf:
        Boolean runMigrations = ninjaProperties.getBoolean(NinjaConstant.NINJA_MIGRATION_RUN);
        
        if (runMigrations != null && runMigrations) {
            // provider used for late binding
            migrationEngineProvider.get().migrate();
        }
    }
We start it at order 9 which is below order 10 (where JPA is started)