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

13 lines
357 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([
{name: 'main', description: 'A general place to play Go'},
{name: 'private', description: 'A private place to play Go', private: true},
2020-01-18 22:15:44 +00:00
]);
});
};