Initial commit
This commit is contained in:
9
node_modules/knex/lib/migrations/seed/stub/coffee.stub
generated
vendored
Executable file
9
node_modules/knex/lib/migrations/seed/stub/coffee.stub
generated
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
exports.seed = (knex) ->
|
||||
knex('table_name').del()
|
||||
.then () ->
|
||||
# Inserts seed entries
|
||||
knex('table_name').insert([
|
||||
{id: 1, colName: 'rowValue'}
|
||||
{id: 2, colName: 'rowValue2'}
|
||||
{id: 3, colName: 'rowValue3'}
|
||||
])
|
||||
Reference in New Issue
Block a user