Lambda-School-Labs/allay-be

View on GitHub
data/seeds/002-work_status_table.js

Summary

Maintainability
A
0 mins
Test Coverage
exports.seed = function (knex) {
  // Deletes ALL existing entries
  return knex('work_status')
    .del()
    .then(function () {
      // Inserts seed entries
      return knex('work_status').insert([
        {
          work_status: 'Current Employee',
        },
        {
          work_status: 'Former Employee',
        },
        {
          work_status: 'Full Time',
        },
        {
          work_status: 'Part Time',
        },
        {
          work_status: 'Intern',
        },
        {
          work_status: 'no work status',
        },
      ]);
    });
};