diff options
| author | Adam Soltys <[email protected]> | 2018-02-14 11:16:24 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2018-02-14 11:16:24 -0800 |
| commit | 6d40624ff510387f75f2d96f421f1ffb6c39ae1c (patch) | |
| tree | 3e86c0543155335c61aecdec3c2755eba6f48a1c /migrations | |
| parent | 7e14da4e949a06da92b8b67024b2ef813512236f (diff) | |
| download | coinos-server-6d40624ff510387f75f2d96f421f1ffb6c39ae1c.tar.gz coinos-server-6d40624ff510387f75f2d96f421f1ffb6c39ae1c.zip | |
watch user addresses for txns
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'); + } +}; |
