mirror of
https://github.com/knex/knex.git
synced 2025-09-30 10:36:11 +00:00

- reverted changes made to lib/ - changed the right files in src - ran `babel -L -D -w src/ --out-dir lib/` to generate files from src/ to lib/ - committed files from src/ and their counterparts in lib/ together as one commit
11 lines
330 B
Plaintext
11 lines
330 B
Plaintext
exports.seed = (knex, Promise) ->
|
|
Promise.join(
|
|
# Deletes ALL existing entries
|
|
knex('table_name').del(),
|
|
|
|
# Inserts seed entries
|
|
knex('table_name').insert({id: 1, colName: 'rowValue'}),
|
|
knex('table_name').insert({id: 2, colName: 'rowValue2'}),
|
|
knex('table_name').insert({id: 3, colName: 'rowValue3'}))
|
|
|