Remove unused Donation.category field
This commit is contained in:
parent
41133e968b
commit
ce9905289b
3 changed files with 10 additions and 3 deletions
|
@ -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
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pg_stat_statements"
|
enable_extension "pg_stat_statements"
|
||||||
|
@ -307,7 +307,6 @@ ActiveRecord::Schema.define(version: 2021_02_23_202458) do
|
||||||
t.datetime "imported_at"
|
t.datetime "imported_at"
|
||||||
t.integer "charge_id"
|
t.integer "charge_id"
|
||||||
t.integer "payment_id"
|
t.integer "payment_id"
|
||||||
t.string "category", limit: 255
|
|
||||||
t.datetime "date"
|
t.datetime "date"
|
||||||
t.datetime "queued_for_import_at"
|
t.datetime "queued_for_import_at"
|
||||||
t.integer "direct_debit_detail_id"
|
t.integer "direct_debit_detail_id"
|
||||||
|
|
|
@ -47,7 +47,6 @@ RSpec.shared_context :shared_rd_donation_value_context do
|
||||||
anonymous: nil,
|
anonymous: nil,
|
||||||
amount: charge_amount,
|
amount: charge_amount,
|
||||||
comment: nil,
|
comment: nil,
|
||||||
category: nil,
|
|
||||||
dedication: {'type' => 'honor', 'name' => 'a name'},
|
dedication: {'type' => 'honor', 'name' => 'a name'},
|
||||||
designation: 'designation',
|
designation: 'designation',
|
||||||
imported_at: nil,
|
imported_at: nil,
|
||||||
|
|
Loading…
Reference in a new issue