knex/lib/seed/stub/ls.stub
John BEPPU a0a6ab9cd5 added LiveScript migrations correctly #903
- 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
2015-07-27 10:40:43 -07:00

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'}))