coffee.stub 248 B

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