Skip to content

Commit

Permalink
fix(create migration): Convert to string before splitting name
Browse files Browse the repository at this point in the history
Signed-off-by: Gwenvael <Gwenvael.mahe@gmail.com>
  • Loading branch information
gmahe committed Jul 3, 2019
1 parent 2d4e92c commit f4aacda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/create-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function executeCreateMigration (internals, config) {
const Migration = require('../template.js');

internals.argv.title = internals.argv._.shift();
folder = internals.argv.title.split('/');
folder = internals.argv.title.toString().split('/');

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

0 comments on commit f4aacda

Please sign in to comment.