From cab52b96819e829eaf6e91867e8956aa61b0b713 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 31 Jul 2024 18:01:14 -0700 Subject: [PATCH 1/2] Fix duplicate column in schema.rb Result of a bad merge(?) --- db/schema.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/db/schema.rb b/db/schema.rb index b61c47ad5..ced24c2bb 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -548,7 +548,6 @@ t.float "amount_paid", default: 0.0 t.integer "amount_paid_cents", default: 0 t.string "currency" - t.integer "amount_paid_cents", default: 0 end create_table "ticket_scannings", force: :cascade do |t| From df73c3097f20242bcdba52f958073d73ed9e0aeb Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 31 Jul 2024 19:07:40 -0700 Subject: [PATCH 2/2] delete ticket currency migration this doesn't need to be here/doesn't belong in this PR --- ...7212948_set_currency_for_null_ticket_purchase_currency.rb | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 db/migrate/20240417212948_set_currency_for_null_ticket_purchase_currency.rb diff --git a/db/migrate/20240417212948_set_currency_for_null_ticket_purchase_currency.rb b/db/migrate/20240417212948_set_currency_for_null_ticket_purchase_currency.rb deleted file mode 100644 index 759aa644c..000000000 --- a/db/migrate/20240417212948_set_currency_for_null_ticket_purchase_currency.rb +++ /dev/null @@ -1,5 +0,0 @@ -class SetCurrencyForNullTicketPurchaseCurrency < ActiveRecord::Migration[7.0] - def up - TicketPurchase.where(currency: nil).update_all(currency: 'USD') - end -end