Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const Promise = require('bluebird');
exports.up = function(knex) {
return Promise.all([
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.