From 59a565c44657e0e75b6fbd26687f273af912fc7c Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 5 Jan 2023 10:42:06 +1100 Subject: [PATCH] Remove confusing and unused db table This table came from Spree but has never been used. --- ...230104233913_drop_spree_product_groups_products.rb | 11 +++++++++++ db/schema.rb | 5 ----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 db/migrate/20230104233913_drop_spree_product_groups_products.rb diff --git a/db/migrate/20230104233913_drop_spree_product_groups_products.rb b/db/migrate/20230104233913_drop_spree_product_groups_products.rb new file mode 100644 index 0000000000..4fc660af54 --- /dev/null +++ b/db/migrate/20230104233913_drop_spree_product_groups_products.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +# This old Spree concept has never been used in our project. +class DropSpreeProductGroupsProducts < ActiveRecord::Migration[6.1] + def change + drop_table "spree_product_groups_products", id: false, force: :cascade do |t| + t.integer "product_id" + t.integer "product_group_id" + end + end +end diff --git a/db/schema.rb b/db/schema.rb index f90a764cac..d89708f892 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -693,11 +693,6 @@ ActiveRecord::Schema.define(version: 2023_01_05_000312) do t.index ["permalink"], name: "index_product_groups_on_permalink" end - create_table "spree_product_groups_products", id: false, force: :cascade do |t| - t.integer "product_id" - t.integer "product_group_id" - end - create_table "spree_product_option_types", id: :serial, force: :cascade do |t| t.integer "position" t.integer "product_id"