change column name from 'place' to 'municipality'

This commit is contained in:
Bilal Catic
2019-05-16 23:32:18 +02:00
parent 1542310a81
commit 42505a7089
8 changed files with 81 additions and 62 deletions

View File

@@ -0,0 +1,19 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.renameColumn(
'RealEstateRequests',
'place',
'municipality'
);
},
down: (queryInterface, Sequelize) => {
return queryInterface.renameColumn(
'RealEstateRequests',
'municipality',
'place'
);
}
};