Drop :is_master column from variants table

This commit is contained in:
Matt-Yorkley
2023-08-09 20:57:25 +01:00
parent 128d5c29bd
commit b82f368bec
3 changed files with 6 additions and 4 deletions

View File

@@ -13,8 +13,6 @@ module Spree
acts_as_paranoid
self.ignored_columns = [:is_master]
searchable_attributes :sku, :display_as, :display_name
searchable_associations :product, :default_price
searchable_scopes :active, :deleted

View File

@@ -0,0 +1,5 @@
class DropVariantIsMaster < ActiveRecord::Migration[7.0]
def up
remove_column :spree_variants, :is_master
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_08_09_194304) do
ActiveRecord::Schema[7.0].define(version: 2023_08_09_195519) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
@@ -995,7 +995,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_09_194304) do
t.decimal "width", precision: 8, scale: 2
t.decimal "depth", precision: 8, scale: 2
t.datetime "deleted_at", precision: nil
t.boolean "is_master", default: false
t.integer "product_id"
t.string "cost_currency", limit: 255
t.float "unit_value"