From ce9905289b7a51dddf940c179e6edcaa15d37ac6 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 23 Feb 2021 14:49:53 -0600 Subject: [PATCH] Remove unused Donation.category field --- .../20210223204824_remove_unused_donation_field.rb | 9 +++++++++ db/schema.rb | 3 +-- .../support/contexts/shared_rd_donation_value_context.rb | 1 - 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20210223204824_remove_unused_donation_field.rb diff --git a/db/migrate/20210223204824_remove_unused_donation_field.rb b/db/migrate/20210223204824_remove_unused_donation_field.rb new file mode 100644 index 00000000..dee0c53d --- /dev/null +++ b/db/migrate/20210223204824_remove_unused_donation_field.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later +# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE +class RemoveUnusedDonationField < ActiveRecord::Migration[6.1] + def change + remove_column :donations, :category, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 54e58fd6..c227a79b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_02_23_202458) do +ActiveRecord::Schema.define(version: 2021_02_23_204824) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" @@ -307,7 +307,6 @@ ActiveRecord::Schema.define(version: 2021_02_23_202458) do t.datetime "imported_at" t.integer "charge_id" t.integer "payment_id" - t.string "category", limit: 255 t.datetime "date" t.datetime "queued_for_import_at" t.integer "direct_debit_detail_id" diff --git a/spec/support/contexts/shared_rd_donation_value_context.rb b/spec/support/contexts/shared_rd_donation_value_context.rb index 067449ab..089a16cb 100644 --- a/spec/support/contexts/shared_rd_donation_value_context.rb +++ b/spec/support/contexts/shared_rd_donation_value_context.rb @@ -47,7 +47,6 @@ RSpec.shared_context :shared_rd_donation_value_context do anonymous: nil, amount: charge_amount, comment: nil, - category: nil, dedication: {'type' => 'honor', 'name' => 'a name'}, designation: 'designation', imported_at: nil,