Sha256: 7dcef14904877efd77595d547105f769bc18cd83831e2891acd62798b1df12b5

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 Bytes

Contents

class CreateComableShipmentItems < ActiveRecord::Migration
  def change
    create_table :comable_shipment_items do |t|
      t.references :shipment, null: false
      t.references :stock, null: false
      t.timestamps null: false
    end

    add_index :comable_shipment_items, :shipment_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comable-core-0.7.1 db/migrate/20151012143215_create_comable_shipment_items.rb
comable-core-0.7.0 db/migrate/20151012143215_create_comable_shipment_items.rb
comable-core-0.7.0.beta2 db/migrate/20151012143215_create_comable_shipment_items.rb