Skip to content

Commit ab5b4c5

Browse files
Update test_user_and_task.js
idを指定すると_pkeyエラーが発生するため削除
1 parent b6e91bb commit ab5b4c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

db/seeds/test_user_and_task.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ exports.seed = async function(knex) {
77
await knex('users').del();
88
await knex('tasks').del()
99
await knex('users').insert([
10-
{id: 1, name: 'user01', password: 'password'}
10+
{name: 'user01', password: 'password'}
1111
]);
1212
await knex('tasks').insert([
13-
{id: 1, user_id: 1, content: 'テスト'}
13+
{user_id: 1, content: 'テスト'}
1414
]);
1515
};

0 commit comments

Comments
 (0)