integration with migrations/seeds/etc
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
'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]'
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user