diff options
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20180214033702-addUserBalance.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/migrations/20180214033702-addUserBalance.js b/migrations/20180214033702-addUserBalance.js new file mode 100644 index 00000000..06ef5adb --- /dev/null +++ b/migrations/20180214033702-addUserBalance.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.addColumn('users', 'balance', { type: Sequelize.INTEGER }); + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.removeColumn('users', 'balance'); + } +}; |
