Sha256: d0ddb72156b4f290fd42623a5b0996d98416facdb428805f4a3413d8f86f2620
Contents?: true
Size: 521 Bytes
Versions: 11
Compression:
Stored size: 521 Bytes
Contents
# This migration comes from spree (originally 20130211190146) class CreateSpreeStockItems < ActiveRecord::Migration def change create_table :spree_stock_items do |t| t.belongs_to :stock_location t.belongs_to :variant t.integer :count_on_hand, null: false, default: 0 t.integer :lock_version t.timestamps end add_index :spree_stock_items, :stock_location_id add_index :spree_stock_items, [:stock_location_id, :variant_id], :name => 'stock_item_by_loc_and_var_id' end end
Version data entries
11 entries across 11 versions & 6 rubygems