node-go/packages/server/data/seeds/01_room.js

12 lines
357 B
JavaScript

exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('room').del()
.then(function () {
// Inserts seed entries
return knex('room').insert([
{name: 'main', description: 'A general place to play Go'},
{name: 'private', description: 'A private place to play Go', private: true},
]);
});
};