Use knex instead of js-data

This commit is contained in:
Zalmoxisus
2016-11-08 22:48:32 +02:00
parent 7c106cd843
commit fd9f7f2c0d
9 changed files with 130 additions and 64 deletions

12
lib/db/seeds/apps.js Normal file
View File

@ -0,0 +1,12 @@
exports.seed = function(knex, Promise) {
return Promise.all([
knex('remotedev_apps').del()
]).then(function() {
return Promise.all([
knex('remotedev_apps').insert({
id: '78626c31-e16b-4528-b8e5-f81301b627f4',
title: 'Default'
})
]);
});
};