Sha256: fceb0807b567e55cbdae166ca3d26cf7d28e4a40e67f8e4d417d9bd77012fa38

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

# This migration comes from spree (originally 20130305143310)
class CreateStockMovements < ActiveRecord::Migration[4.2]
  def change
    create_table :spree_stock_movements do |t|
      t.belongs_to :stock_item
      t.integer :quantity
      t.string :action

      t.timestamps null: false
    end
    add_index :spree_stock_movements, :stock_item_id
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181876_create_stock_movements.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181876_create_stock_movements.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181876_create_stock_movements.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181876_create_stock_movements.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181876_create_stock_movements.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181876_create_stock_movements.spree.rb