Sha256: 9604d394ad360ba9707aca34d56bbd3cedd3cdf2fb31b5dcc672dd6fd62c5273

Contents?: true

Size: 288 Bytes

Versions: 3

Compression:

Stored size: 288 Bytes

Contents

class AddStockLocationIdToComableStocks < ActiveRecord::Migration
  def change
    change_table :comable_stocks do |t|
      t.references :stock_location
    end

    add_index :comable_stocks, :stock_location_id
    add_index :comable_stocks, [:stock_location_id, :variant_id]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comable-core-0.7.1 db/migrate/20150924102640_add_stock_location_id_to_comable_stocks.rb
comable-core-0.7.0 db/migrate/20150924102640_add_stock_location_id_to_comable_stocks.rb
comable-core-0.7.0.beta2 db/migrate/20150924102640_add_stock_location_id_to_comable_stocks.rb