hyoshida/comable

View on GitHub
core/db/migrate/20150924102640_add_stock_location_id_to_comable_stocks.rb

Summary

Maintainability
A
0 mins
Test Coverage
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