1 | //
|
2 | // Create a default user in the DB
|
3 | //
|
4 | exports.seed = function(knex, Promise) {
|
5 |
|
6 | return knex('users')
|
7 | .del()
|
8 | .then(function() {
|
9 |
|
10 | return knex('users')
|
11 | .insert({
|
12 | email: 'name@example.com',
|
13 | password: '$2a$12$s/AN1yl9NltGA/JXE73T1eR4hMwdtntKqRGMtd1BU0Co6QlCcpaUi' // the password is password at 12 rounds
|
14 | })
|
15 | });
|
16 |
|
17 | };
|