Sha256: b8e3d2a2330db85bcd2e6a1ca9d9b9ccd7d97d1958e998d0c9561d37ffc928ad
Contents?: true
Size: 423 Bytes
Versions: 13
Compression:
Stored size: 423 Bytes
Contents
class CreateOfJoinTableItemsOffers < ActiveRecord::Migration[5.0] def change create_table :of_items_offers, :id => false do |t| t.integer :item_id, :null => false t.integer :offer_id, :null => false end add_index :of_items_offers, [:item_id, :offer_id], :unique => true, :name => 'of_index1' add_index :of_items_offers, [:offer_id, :item_id], :unique => true, :name => 'of_index2' end end
Version data entries
13 entries across 13 versions & 1 rubygems