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

View on GitHub
data/seeds/013_Achievements.js

Summary

Maintainability
A
0 mins
Test Coverage
var faker = require('faker');

const achievements = [...new Array(10)].map((i, idx)=>({
  Name: faker.fake("{{random.word}} {{random.word}}"),
  Description: faker.fake("{{random.word}} {{random.word}} {{random.word}} {{random.word}}"),
}));

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