aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorOfer Nave <odigity@gmail.com>2013-09-24 20:34:50 -0400
committerOfer Nave <odigity@gmail.com>2013-09-24 20:34:50 -0400
commit803ecc7334b89a12cf169c814973d2ec58b0b668 (patch)
treef1e6be891ef392b7d1b51d514a142d1713ba6c7c /guides/source
parentde1e502429b1287d8bc07cbfbe6638d24322b1e7 (diff)
downloadrails-803ecc7334b89a12cf169c814973d2ec58b0b668.tar.gz
rails-803ecc7334b89a12cf169c814973d2ec58b0b668.tar.bz2
rails-803ecc7334b89a12cf169c814973d2ec58b0b668.zip
added "id: false" to HABTM join table example
Based on the instructions further down in section 3.3.2.
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/association_basics.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 8ef982f8c5..91b268d766 100644
--- a/guides/source/association_basics.md
+++ b/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