diff --git a/migrations/000_signups_addColumn_memo_timestamp.js b/migrations/000_signups_addColumn_memo_timestamp.js index f753526..d8c246c 100644 --- a/migrations/000_signups_addColumn_memo_timestamp.js +++ b/migrations/000_signups_addColumn_memo_timestamp.js @@ -28,9 +28,7 @@ exports.up = function (knex) { table.boolean('late') table.timestamp('timestamp').defaultTo(knex.fn.now()) table.string('memo').nullable() - return table - }).then(_ => { - knex('signups').insert(rows).then(res) + res() }).catch(rej) }) })