Sha256: c3fe4a5c00c370f7e524d404216cb06755929514d5a2ae0e27cfadf9ee691b69

Contents?: true

Size: 355 Bytes

Versions: 8

Compression:

Stored size: 355 Bytes

Contents

class C80CatoffersAddJoinTableOffersProps < ActiveRecord::Migration
  def change
    create_table :c80_catoffers_offers_props, :id => false do |t|
      t.integer :offer_id, :null => false
      t.integer :prop_id, :null => false
    end

    add_index :c80_catoffers_offers_props, [:offer_id, :prop_id], :unique => true, :name => 'my_index_2'

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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