Remove products taxon null constraint

This commit is contained in:
Matt-Yorkley
2023-08-07 12:43:04 +01:00
committed by Gaetan Craig-Riou
parent 2707c3137a
commit 3a38eeb248
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class RemoveTaxonConstraint < ActiveRecord::Migration[7.0]
def change
change_column_null :spree_products, :primary_taxon_id, true
end
end

View File

@@ -698,7 +698,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_02_13_044159) do
t.float "variant_unit_scale"
t.string "variant_unit_name", limit: 255
t.text "notes"
t.integer "primary_taxon_id", null: false
t.integer "primary_taxon_id"
t.boolean "inherits_properties", default: true, null: false
t.string "sku", limit: 255, default: "", null: false
t.index ["deleted_at"], name: "index_products_on_deleted_at"