andela/team-odd-bn-backend

View on GitHub
src/database/seeders/20191118175700-tripTypes.js

Summary

Maintainability
B
4 hrs
Test Coverage
'use strict';

module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.bulkInsert('tripTypes', [
      {
        tripType:'OneWay',
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        tripType:'RoundTrip',
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        tripType:'MultiCity',
        createdAt: new Date(),
        updatedAt: new Date()
      }
    
    ], {});
  },

  down: (queryInterface, Sequelize) => {
    return queryInterface.bulkDelete('tripTypes', null, {});
  }
};