database changes and initial causes and regions
This commit is contained in:
@@ -4,12 +4,37 @@ module.exports = {
|
||||
up: (queryInterface, Sequelize) => {
|
||||
return queryInterface.bulkInsert('causes', [
|
||||
{
|
||||
name: 'Animal Care',
|
||||
name: 'Animal',
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
},
|
||||
{
|
||||
name: 'Water',
|
||||
name: 'Environment',
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
},
|
||||
{
|
||||
name: 'Health',
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
},
|
||||
{
|
||||
name: 'Human Services',
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
},
|
||||
{
|
||||
name: 'Education',
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
},
|
||||
{
|
||||
name: 'Arts and Culture',
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
},
|
||||
{
|
||||
name: 'Religion',
|
||||
created_at: new Date(),
|
||||
updated_at: new Date()
|
||||
}
|
||||
@@ -17,6 +42,28 @@ module.exports = {
|
||||
},
|
||||
|
||||
down: (queryInterface, Sequelize) => {
|
||||
return queryInterface.bulkDelete('causes', [{ name: 'Water' }, { name: 'Animal Care' }]);
|
||||
return queryInterface.bulkDelete('causes', [
|
||||
{
|
||||
name: 'Animal'
|
||||
},
|
||||
{
|
||||
name: 'Environment'
|
||||
},
|
||||
{
|
||||
name: 'Health'
|
||||
},
|
||||
{
|
||||
name: 'Human Services'
|
||||
},
|
||||
{
|
||||
name: 'Education'
|
||||
},
|
||||
{
|
||||
name: 'Arts and Culture'
|
||||
},
|
||||
{
|
||||
name: 'Religion'
|
||||
}
|
||||
]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user