Skip to content

Commit 78b88c6

Browse files
committed
feat: to allow config public for Migration model
1 parent d0c26e6 commit 78b88c6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)