ls.stub 288 B

1234567891011
  1. exports.seed = (knex, Promise) ->
  2. # Deletes ALL existing entries
  3. knex('table_name').del()
  4. .then(() ->
  5. # Inserts seed entries
  6. knex('table_name').insert([
  7. {id: 1, colName: 'rowValue1'},
  8. {id: 2, colName: 'rowValue2'},
  9. {id: 3, colName: 'rowValue3'}
  10. ])
  11. )