andela/codepirates-ah-backend

View on GitHub
src/seeders/20190816065412-test-articletags.js

Summary

Maintainability
A
0 mins
Test Coverage


module.exports = {
  up: queryInterface => queryInterface.bulkInsert('ArticleTags', [
    {
      tagId: 1,
      articleId: 1,
      createdAt: new Date(),
      updatedAt: new Date()
    },
    {
      tagId: 2,
      articleId: 2,
      createdAt: new Date(),
      updatedAt: new Date()
    },
    {
      tagId: 1,
      articleId: 3,
      createdAt: new Date(),
      updatedAt: new Date()
    },
    {
      tagId: 1,
      articleId: 4,
      createdAt: new Date(),
      updatedAt: new Date()
    },
    {
      tagId: 2,
      articleId: 4,
      createdAt: new Date(),
      updatedAt: new Date()
    }
  ], {}),

  down: queryInterface => queryInterface.bulkDelete('ArticleTags', null, {})
};