1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

added "id: false" to HABTM join table example

Based on the instructions further down in section 3.3.2.
This commit is contained in:
Ofer Nave 2013-09-24 20:34:50 -04:00
parent de1e502429
commit 803ecc7334

View file

@ -340,7 +340,7 @@ class CreateAssembliesAndParts < ActiveRecord::Migration
t.timestamps
end
create_table :assemblies_parts do |t|
create_table :assemblies_parts, id: false do |t|
t.belongs_to :assembly
t.belongs_to :part
end