diff --git a/app/migrations/20190909110623-add-location-input-to-real-estate-request.js b/app/migrations/20190909110623-add-location-input-to-real-estate-request.js new file mode 100644 index 0000000..62b4f3a --- /dev/null +++ b/app/migrations/20190909110623-add-location-input-to-real-estate-request.js @@ -0,0 +1,13 @@ +"use strict"; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.addColumn("RealEstateRequests", "locationInput", { + type: Sequelize.STRING + }); + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.removeColumn("RealEstateRequests", "locationInput"); + } +};