Skip to content

Commit f4aacda

Browse files
committed
fix(create migration): Convert to string before splitting name
Signed-off-by: Gwenvael <[email protected]>
1 parent 2d4e92c commit f4aacda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/create-migration.js

+1-1
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)