UNPKG

bookshelf-protected-columns

Version:

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

12 lines (10 loc) 308 B
exports.seed = function(knex, Promise) { // Deletes ALL existing entries return knex('users').del() .then(function () { // Inserts seed entries return knex('users').insert([ { name: 'Lucas', protected: 'this shouldn\'t change', address: '123 Super Street' } ]); }); };