eg.stub 310 B

1234567891011
  1. provide: seed
  2. seed = (knex, Promise) ->
  3. ;; Deletes ALL existing entries
  4. knex(.table_name).del()
  5. .then(() ->
  6. ;; Inserts seed entries
  7. knex(.table_name).insert with [
  8. { id = 1, col-name = .row-value-1 }
  9. { id = 2, col-name = .row-value-2 }
  10. { id = 3, col-name = .row-value-3 }
  11. ]