16 lines
358 B
JavaScript
16 lines
358 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn('users', 'preferred_currency', {
|
|
type: Sequelize.CHAR(3),
|
|
allowNull: false,
|
|
defaultValue: 'USD',
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeColumn('users', 'preferred_currency');
|
|
},
|
|
};
|