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:
parent
de1e502429
commit
803ecc7334
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue