Remove unused product meta description from DB

This commit is contained in:
Maikel Linke
2023-03-15 14:18:53 +11:00
parent 70aff98581
commit 6f83607aa8
3 changed files with 6 additions and 4 deletions

View File

@@ -27,8 +27,6 @@ module Spree
include PermalinkGenerator
include ProductStock
self.ignored_columns = [:meta_description]
acts_as_paranoid
searchable_attributes :supplier_id, :primary_taxon_id, :meta_keywords

View File

@@ -0,0 +1,5 @@
class RemoveMetaDescriptionFromSpreeProducts < ActiveRecord::Migration[6.1]
def change
remove_column :spree_products, :meta_description, :text
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_02_13_160135) do
ActiveRecord::Schema[7.0].define(version: 2023_03_15_031807) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
@@ -718,7 +718,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_02_13_160135) do
t.datetime "available_on", precision: nil
t.datetime "deleted_at", precision: nil
t.string "permalink", limit: 255
t.text "meta_description"
t.string "meta_keywords", limit: 255
t.integer "tax_category_id"
t.integer "shipping_category_id"