add price screen

This commit is contained in:
Bilal Catic
2019-05-17 11:32:41 +02:00
parent b15295bfe6
commit c652a306db
6 changed files with 93 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn(
'RealEstateRequests',
'price',
{
type: Sequelize.ENUM,
values: ['50kKM', '100kKM', '150kKM', '200kKM', '250kKM', 'moreThan250kKM']
}
);
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn(
'RealEstateRequests',
'price'
);
}
};