It depends on how you want to use the has_many :through
relation. There are two different cases (named in the relationship guide
- for the n: m relationship: an example in the manual - doctors have meetings with patients.
- for 1: n and an additional ratio of 1: n: an example in the manual: 1 document has many sections, and 1 section has many paragraphs.
For the first you need a connection table, you do not need an index. For the second, you do not need any of them.
source share