Last active
March 4, 2016 22:38
-
-
Save ebramanti/a8ee1c290bd62396ffe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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