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.
This commit is contained in:
Maikel Linke
2023-01-05 10:46:15 +11:00
parent 59a565c446
commit 446fa2ddab
2 changed files with 13 additions and 8 deletions

View File

@@ -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

View File

@@ -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"