Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
data/seeds/003_GradeLevels.js

Summary

Maintainability
A
0 mins
Test Coverage
// const gradeLevels = [...new Array(6)].map((i, idx) => {
//   return { GradeLevel: idx + 3 };
// });
const gradeLevels = [
  { GradeLevel: 3},
  { GradeLevel: 4},
  { GradeLevel: 5},
  { GradeLevel: 6},
  { GradeLevel: 7},
  { GradeLevel: 8},
]

exports.seed = function (knex) {
  // Inserts seed entries
  return knex('GradeLevels').insert(gradeLevels);
};