From bd1ed0d732070f1a5dd8ad3bfcd94f1bcdcab520 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 7 Feb 2017 22:46:17 -0800 Subject: [PATCH] Database migration for tips table changes --- migrations/096_modify_tips.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 migrations/096_modify_tips.rb diff --git a/migrations/096_modify_tips.rb b/migrations/096_modify_tips.rb new file mode 100644 index 00000000..3ddf0bf8 --- /dev/null +++ b/migrations/096_modify_tips.rb @@ -0,0 +1,19 @@ +Sequel.migration do + up { + DB.add_column :tips, :currency, :text + DB.add_column :tips, :message, :text + DB.add_column :tips, :paypal_payer_email, :text + DB.add_column :tips, :paypal_receiver_email, :text + DB.add_column :tips, :paypal_txn_id, :text + DB.add_column :tips, :fee, :numeric + } + + down { + DB.drop_column :tips, :currency + DB.drop_column :tips, :message + DB.drop_column :tips, :paypal_payer_email + DB.drop_column :tips, :paypal_receiver_email + DB.drop_column :tips, :paypal_txn_id + DB.drop_column :tips, :fee + } +end