Sha256: b8cfd4161d35016cb53ea1ff98b374b63b46f54b9688530f8f5acc43c07626a1
Contents?: true
Size: 592 Bytes
Versions: 15
Compression:
Stored size: 592 Bytes
Contents
class CreateC80YaxJoinTableItemsItemsSimilar < ActiveRecord::Migration def self.up create_table :c80_yax_items_similar, id: false do |t| t.integer :item_id t.integer :similar_item_id end add_index(:c80_yax_items_similar, [:item_id, :similar_item_id], :unique => true) add_index(:c80_yax_items_similar, [:similar_item_id, :item_id], :unique => true) end def self.down remove_index(:c80_yax_items_similar, [:similar_item_id, :item_id]) remove_index(:c80_yax_items_similar, [:item_id, :similar_item_id]) drop_table :c80_yax_items_similar end end
Version data entries
15 entries across 15 versions & 1 rubygems