Skip to content

Instantly share code, notes, and snippets.

@w3cj
Created December 8, 2016 20:01
Show Gist options
  • Save w3cj/fba90220c5ae4ab53c9e9015a12ea7f1 to your computer and use it in GitHub Desktop.
Save w3cj/fba90220c5ae4ab53c9e9015a12ea7f1 to your computer and use it in GitHub Desktop.
exports.seed = function(knex, Promise) {
return knex('balloon').del()
.then(function () {
const balloons = [{
shape: 'circle',
volume: 123.2312,
color: 'red',
size: 'S'
}, {
shape: 'heart',
volume: 456.123,
color: 'blue',
size: 'L'
}, {
shape: 'triangle',
volume: 8374.123,
color: 'purple',
size: 'XL'
}, {
shape: 'panda',
volume: 678.123,
color: 'black/white',
size: 'L'
}];
return knex('balloon').insert(balloons);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment