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

Version Path
c80_yax-0.1.0.25 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.24 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.23 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.22 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.21 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.20 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.18 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.17 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.16 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.15 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.14 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.13 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb
c80_yax-0.1.0.12 engines/of/db/migrate/20170716100707_create_of_join_table_items_offers.rb