Skip to content

Commit 88b2018

Browse files
committed
feat: to allow config public for Migration model
1 parent 05f46c0 commit 88b2018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ module.exports = function(app, options) {
6666
var Migration = require('./models/migration')(MigrationModel, options);
6767
var MigrationMap = require('./models/migration-map')(MigrationMapModel, options);
6868

69-
app.model(Migration);
70-
app.model(MigrationMap);
69+
app.model(Migration, options);
70+
app.model(MigrationMap, options);
7171

7272
if (!options.enableRest) {
7373
if (Migration.disableRemoteMethodByName) {

0 commit comments

Comments
 (0)