Sha256: b037dc5bd67a0b6c8e94bf35f83215a92ad7a8b6b445ae12a925603570de6026

Contents?: true

Size: 437 Bytes

Versions: 11

Compression:

Stored size: 437 Bytes

Contents

class CreateC80PushJoinTableDealersRegions < ActiveRecord::Migration[5.0]
  def change
    create_table :c80_push_dealers_regions, :id => false do |t|
      t.integer :dealer_id, :null => false
      t.integer :region_id, :null => false
    end

    add_index :c80_push_dealers_regions, [:dealer_id, :region_id], name: 'too_long_push1'
    add_index :c80_push_dealers_regions, [:region_id, :dealer_id], name: 'too_long_push2'

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
c80_push-0.1.0.11 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.10 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.8 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.7 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.6 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.5 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.4 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.3 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.2 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0.1 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb
c80_push-0.1.0 db/migrate/20170626130000_create_c80_push_join_table_dealers_regions.rb