You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

02-profiles.js 427B

1234567891011121314
  1. const mock = require('../mock')
  2. const generated = require('../_generated')
  3. exports.seed = function (knex) {
  4. // Deletes ALL existing entries
  5. return knex('profiles')
  6. .truncate()
  7. .then(function () {
  8. // Inserts seed entries
  9. return generated.profiles
  10. ? knex('profiles').insert(generated.profiles)
  11. : knex('profiles').insert(mock.profiles)
  12. })
  13. }