mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
13
db/migrate/20230104234406_drop_spree_product_groups.rb
Normal file
13
db/migrate/20230104234406_drop_spree_product_groups.rb
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user