node-go/packages/server/data/seeds/05_message.js
2020-02-05 16:54:09 -08:00

11 lines
No EOL
290 B
JavaScript

exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('message').del()
.then(function () {
// Inserts seed entries
return knex('message').insert([
{id: 1, content: 'Hey! Welcome to the general room!', room: 1, user: 2}
]);
});
};