Sha256: 4b65f450eaac2b28ded3cf4d341f39f1b0fe4ee73487837a9929106fbe4fce95

Contents?: true

Size: 218 Bytes

Versions: 2

Compression:

Stored size: 218 Bytes

Contents

class CreateAssemblyPartJoinTable < ActiveRecord::Migration
  def change
    create_join_table :assemblies, :parts do |t|
      t.index [:assembly_id, :part_id]
      t.index [:part_id, :assembly_id]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
poly_belongs_to-1.0.0 test/dummy/db/migrate/20161210145757_create_assembly_part_join_table.rb
poly_belongs_to-0.3.0 test/dummy/db/migrate/20161210145757_create_assembly_part_join_table.rb