knex/lib/seed/stub/ls.stub
2019-07-10 23:48:43 +02:00

12 lines
279 B
Plaintext

exports.seed = (knex) ->
# Deletes ALL existing entries
knex('table_name').del()
.then(() ->
# Inserts seed entries
knex('table_name').insert([
{id: 1, colName: 'rowValue1'},
{id: 2, colName: 'rowValue2'},
{id: 3, colName: 'rowValue3'}
])
)