exports.up = function(knex) { return knex.schema .createTable('groupings', function(table) { table.increments('grouping_id').primary() table.string('grouping_name', 128).notNullable() table.string('grouping_type', 128).notNullable() // Don't over normalize }) } exports.down = function(knex) { return knex.schema .dropTable('groupings') }