Sha256: a2ef9724a8ed445ecc56ad661014bb4d4b81fdc0b75eaea23f713debc2ff99a1
Contents?: true
Size: 396 Bytes
Versions: 9
Compression:
Stored size: 396 Bytes
Contents
# This migration comes from spree (originally 20150216173445) class AddIndexToSpreeStockItemsVariantId < ActiveRecord::Migration[4.2] def up unless index_exists? :spree_stock_items, :variant_id add_index :spree_stock_items, :variant_id end end def down if index_exists? :spree_stock_items, :variant_id remove_index :spree_stock_items, :variant_id end end end
Version data entries
9 entries across 9 versions & 2 rubygems