Skip to content

Instantly share code, notes, and snippets.

@gnarf
Created May 28, 2014 22:15
Show Gist options
  • Select an option

  • Save gnarf/0a26d2e58952b459aa99 to your computer and use it in GitHub Desktop.

Select an option

Save gnarf/0a26d2e58952b459aa99 to your computer and use it in GitHub Desktop.
exports.up = function (knex) {
return knex.schema.createTable('list', function (t) {
t.increments('id');
t.integer('owner_id').notNullable();
t.text('name').notNullable();
t.timestamp('last_modified');
});
};
exports.down = function (knex) {
return knex.schema.dropTableIfExists('list');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment