Skip to content

Commit 9574027

Browse files
committed
Convert to string before splitting name
1 parent 2d4e92c commit 9574027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/create-migration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function executeCreateMigration (internals, config) {
4949
const Migration = require('../template.js');
5050

5151
internals.argv.title = internals.argv._.shift();
52-
folder = internals.argv.title.split('/');
52+
folder = internals.argv.title.toString().split('/');
5353

5454
internals.argv.title = folder[folder.length - 2] || folder[0];
5555
path = migrationsDir;

0 commit comments

Comments
 (0)