24 lines
485 B
JavaScript
24 lines
485 B
JavaScript
'use strict';
|
|
|
|
// DOESNT WORK AS NEED TO HASH PASSWORD TO DB
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.bulkInsert('donors', [
|
|
{
|
|
first_name: 'Arjun',
|
|
email: '[email protected]',
|
|
password: 'test',
|
|
last_name: 'Patel',
|
|
created_at: new Date(),
|
|
updated_at: new Date()
|
|
}
|
|
]);
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
return queryInterface.bulkDelete('donors', {
|
|
email: '[email protected]'
|
|
});
|
|
}
|
|
};
|