Skip to content

Commit 1d293ad

Browse files
committed
Add seed data
1 parent 22c941a commit 1d293ad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

migrate.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ knex.schema.hasTable("accounts").then(function(exists) {
1111
t.increments("id").primary();
1212
t.string("name", 100);
1313
t.text("description");
14+
}).then(() => {
15+
return knex("accounts").insert([{
16+
name: "Account 1",
17+
description: "Description 1",
18+
},{
19+
name: "Account 2",
20+
description: "Description 2",
21+
}]);
1422
});
1523
}
1624
}).then(() => {

0 commit comments

Comments
 (0)