16 lines
436 B
JavaScript
16 lines
436 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
// Add paymentFailedReason - stores the user-friendly error message for payment failures
|
|
await queryInterface.addColumn("Rentals", "paymentFailedReason", {
|
|
type: Sequelize.TEXT,
|
|
allowNull: true,
|
|
});
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
await queryInterface.removeColumn("Rentals", "paymentFailedReason");
|
|
},
|
|
};
|