Sha256: a1b80b12ab4b0ee718e65b051406a8a36c28e1e868d007a63d2a6952ce254638
Contents?: true
Size: 334 Bytes
Versions: 120
Compression:
Stored size: 334 Bytes
Contents
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
120 entries across 120 versions & 1 rubygems