Sha256: a07698aeea4d8e70870d08f55c22d68b2ed224745ec346b1c2eba5f82eab78dc

Contents?: true

Size: 376 Bytes

Versions: 8

Compression:

Stored size: 376 Bytes

Contents

class C80CatoffersAddJoinTableCategoriesOffers < ActiveRecord::Migration
  def change
    create_table :c80_catoffers_categories_offers, :id => false do |t|
      t.integer :category_id, :null => false
      t.integer :offer_id, :null => false
    end

    add_index :c80_catoffers_categories_offers, [:offer_id, :category_id], :unique => true, :name => 'my_index'

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
c80_catoffers-0.1.0.8 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb
c80_catoffers-0.1.0.7 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb
c80_catoffers-0.1.0.6 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb
c80_catoffers-0.1.0.5 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb
c80_catoffers-0.1.0.4 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb
c80_catoffers-0.1.0.3 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb
c80_catoffers-0.1.0.2 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb
c80_catoffers-0.1.0.1 db/migrate/20160922152020_c80_catoffers_add_join_table_categories_offers.rb