1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1x 1x 1x 1x 1x 1x 1x 1x | exports.up = function(knex) { return knex.schema.createTable('users', table => { table.increments('id').primary(); table.string('name'); table.string('slugged'); table.timestamps(); }); }; exports.down = function(knex) { return knex.schema.dropTableIfExists('users'); }; |