Sha256: 5360bb3b9f4f81998e85f26b0938b192d2b8ae4a2841229f7cab7a3e661657ff

Contents?: true

Size: 437 Bytes

Versions: 11

Compression:

Stored size: 437 Bytes

Contents

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

    add_index :c80_push_offices_regions, [:office_id, :region_id], name: 'too_long_push3'
    add_index :c80_push_offices_regions, [:region_id, :office_id], name: 'too_long_push4'

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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