Add lock_version to Spree::StockItem

This commit is contained in:
Kristina Lim
2020-05-12 15:09:53 +08:00
committed by Luis Ramos
parent 774b3720d5
commit e53913756c
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class AddLockVersionToStockItems < ActiveRecord::Migration
def change
add_column :spree_stock_items, :lock_version, :integer, default: 0
end
end

View File

@@ -899,6 +899,7 @@ ActiveRecord::Schema.define(version: 20200623140437) do
t.datetime "updated_at"
t.boolean "backorderable", default: false
t.datetime "deleted_at"
t.integer "lock_version", default: 0
end
add_index "spree_stock_items", ["stock_location_id", "variant_id"], name: "stock_item_by_loc_and_var_id", using: :btree