Permalink
Browse files

added "id: false" to HABTM join table example

Based on the instructions further down in section 3.3.2.
  • Loading branch information...
1 parent de1e502 commit 803ecc7334b89a12cf169c814973d2ec58b0b668 @odigity odigity committed Sep 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/association_basics.md
View
2 guides/source/association_basics.md
@@ -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

0 comments on commit 803ecc7

Please sign in to comment.