Skip to content

Commit 2bab8cb

Browse files
authored
Merge pull request #630 from gmahe/split-bug
Convert to string before splitting name
2 parents 2d6878c + f4aacda commit 2bab8cb

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
@@ -42,7 +42,7 @@ async function executeCreateMigration (internals, config) {
4242
const Migration = require('../template.js');
4343

4444
internals.argv.title = internals.argv._.shift();
45-
folder = internals.argv.title.split('/');
45+
folder = internals.argv.title.toString().split('/');
4646

4747
internals.argv.title = folder[folder.length - 1] || folder[0];
4848
path = migrationsDir;

0 commit comments

Comments
 (0)