From bcf501e32ed47ac2920736530f45a93ccc0b339e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 22 Mar 2018 09:50:38 -0700 Subject: track tips and set received boolean for fulfilled payments --- migrations/20180322163730-addTipToPayments.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/20180322163730-addTipToPayments.js (limited to 'migrations') diff --git a/migrations/20180322163730-addTipToPayments.js b/migrations/20180322163730-addTipToPayments.js new file mode 100644 index 00000000..a482c7d4 --- /dev/null +++ b/migrations/20180322163730-addTipToPayments.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.addColumn('payments', 'tip', { type: Sequelize.DOUBLE }) + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.removeColumn('payments', 'tip'); + } +}; -- cgit v1.2.3