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

13 lines
371 B
JavaScript
Raw Normal View History

2020-01-18 22:15:44 +00:00
exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('room').del()
.then(function () {
// Inserts seed entries
return knex('room').insert([
{id: 1, name: 'main', description: 'A general place to play Go'},
{id: 2, name: 'private', description: 'A private place to play Go', private: true},
]);
});
};