UNPKG

bookshelf-protected-columns

Version:

A plugin for bookshelf.js that allows for the protection of columns

14 lines (11 loc) 287 B
exports.up = function(knex) { return knex.schema.createTable('users', function(table) { table.increments(); table.string('name'); table.string('protected'); table.string('address'); }); }; exports.down = function(knex) { return knex.schema.dropTable('users'); };