From 446fa2ddabbc03f75fa0c317a55a739015f7724d Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 5 Jan 2023 10:46:15 +1100 Subject: [PATCH] Remove confusing and unused db table This table came from Spree but has never been used. We soon want to use the term Product Group and having this table would be confusing. --- .../20230104234406_drop_spree_product_groups.rb | 13 +++++++++++++ db/schema.rb | 8 -------- 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 db/migrate/20230104234406_drop_spree_product_groups.rb diff --git a/db/migrate/20230104234406_drop_spree_product_groups.rb b/db/migrate/20230104234406_drop_spree_product_groups.rb new file mode 100644 index 0000000000..186a13b6fd --- /dev/null +++ b/db/migrate/20230104234406_drop_spree_product_groups.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class DropSpreeProductGroups < ActiveRecord::Migration[6.1] + def change + drop_table "spree_product_groups", id: :serial, force: :cascade do |t| + t.string "name", limit: 255 + t.string "permalink", limit: 255 + t.string "order", limit: 255 + t.index ["name"], name: "index_product_groups_on_name" + t.index ["permalink"], name: "index_product_groups_on_permalink" + end + end +end diff --git a/db/schema.rb b/db/schema.rb index d89708f892..4001d36123 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -685,14 +685,6 @@ ActiveRecord::Schema.define(version: 2023_01_05_000312) do t.index ["variant_id"], name: "index_spree_prices_on_variant_id" end - create_table "spree_product_groups", id: :serial, force: :cascade do |t| - t.string "name", limit: 255 - t.string "permalink", limit: 255 - t.string "order", limit: 255 - t.index ["name"], name: "index_product_groups_on_name" - t.index ["permalink"], name: "index_product_groups_on_permalink" - end - create_table "spree_product_option_types", id: :serial, force: :cascade do |t| t.integer "position" t.integer "product_id"