Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const Promise = require('bluebird');
Promise.series = (promiseArr) => Promise.each(promiseArr, (result) => result);
exports.up = function(knex) {
return Promise.series([
knex.schema.renameTable('tomatoes', 'potatoes'),
knex.schema.table('potatoes', (table) => table.string('name'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.