Skip to content

Commit

Permalink
Clarify the docs around additional columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 13, 2012
1 parent 296a0ac commit 1315816
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions en/models/associations-linking-models-together.rst
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,9 @@ should be two fields, each foreign keys (which should be integers)
pointing to both of the primary keys of the involved models. To
avoid any issues - don't define a combined primary key for these
two fields, if your application requires it you can define a unique
index. If you plan to add any extra information to this table, it's
a good idea to add an additional primary key field (by convention
'id') to make acting on the table as easy as any other model.
index. If you plan to add any extra information to this table, or use
a 'with' model, you should add an additional primary key field (by convention
'id').

**HABTM** requires a separate join table that includes both *model*
names.
Expand Down

0 comments on commit 1315816

Please sign in to comment.