File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ The usage is based on the node-db-migrate project.
3434
3535- ` enableRest `
3636
37- [ Boolean] : A boolean indicating wether migrate/rollback REST api methods should be exposed on the Migration model. * (default: false)*
37+ [ Boolean] : A boolean indicating whether migrate/rollback REST api methods should be exposed on the Migration model. * (default: false)*
3838
3939- ` migrationsDir `
4040
@@ -48,6 +48,10 @@ The usage is based on the node-db-migrate project.
4848
4949 [ Array] : ACLs to apply to Migration and MigrationMap models. * (default: [ ] )*
5050
51+ - ` public `
52+
53+ [ Boolean] : A boolean indicating whether Migration model should be exposed on the StrongLoop API Explorer. * (default: true)*
54+
5155
5256## Running Migrations
5357
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ module.exports = function(app, options) {
6060 var Migration = require ( './models/migration' ) ( MigrationModel , options ) ;
6161 var MigrationMap = require ( './models/migration-map' ) ( MigrationMapModel , options ) ;
6262
63- app . model ( Migration ) ;
64- app . model ( MigrationMap ) ;
63+ app . model ( Migration , options ) ;
64+ app . model ( MigrationMap , options ) ;
6565
6666 if ( ! options . enableRest ) {
6767 if ( Migration . disableRemoteMethodByName ) {
You can’t perform that action at this time.
0 commit comments