Medium Rails

Use has_many :through over HABTM

Rule Description

Always `has_many :through` with explicit join model. Never `has_and_belongs_to_many`.

Included in Rulesets

Rails Standards
52 rules • 1 standard
View
Code Review Standards
214 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
Medium
Category
Rails
Used in
2 rulesets