Remove unused Spree database table

I randomly stumbled across this one and couldn't find any use of it. I
think that it refers to an old payment gateway that may have been used
by Spree once upon a time.
This commit is contained in:
Maikel Linke
2023-01-05 11:05:15 +11:00
parent 31f7cadd92
commit cdd39f526d
2 changed files with 17 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
# frozen_string_literal: true
class DropSpreeSkrillTransactions < ActiveRecord::Migration[6.1]
def change
drop_table "spree_skrill_transactions", id: :serial, force: :cascade do |t|
t.string "email", limit: 255
t.float "amount"
t.string "currency", limit: 255
t.integer "transaction_id"
t.integer "customer_id"
t.string "payment_type", limit: 255
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_12_08_150521) do
ActiveRecord::Schema.define(version: 2023_01_05_000312) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -890,17 +890,6 @@ ActiveRecord::Schema.define(version: 2022_12_08_150521) do
t.index ["shipment_id", "shipping_method_id"], name: "spree_shipping_rates_join_index", unique: true
end
create_table "spree_skrill_transactions", id: :serial, force: :cascade do |t|
t.string "email", limit: 255
t.float "amount"
t.string "currency", limit: 255
t.integer "transaction_id"
t.integer "customer_id"
t.string "payment_type", limit: 255
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "spree_state_changes", id: :serial, force: :cascade do |t|
t.string "name", limit: 255
t.string "previous_state", limit: 255