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