![Create a many-to-many ActiveRecord association in Ruby on Rails with has_many :through and has_and_belongs_to_many | Development Simplified Create a many-to-many ActiveRecord association in Ruby on Rails with has_many :through and has_and_belongs_to_many | Development Simplified](https://joshfrankel.me/img/2016/many-to-many-good.png)
Create a many-to-many ActiveRecord association in Ruby on Rails with has_many :through and has_and_belongs_to_many | Development Simplified
![Create a many-to-many ActiveRecord association in Ruby on Rails with has_many :through and has_and_belongs_to_many | Development Simplified Create a many-to-many ActiveRecord association in Ruby on Rails with has_many :through and has_and_belongs_to_many | Development Simplified](https://joshfrankel.me/img/2016/many-to-many-bad-erd.png)
Create a many-to-many ActiveRecord association in Ruby on Rails with has_many :through and has_and_belongs_to_many | Development Simplified
![ruby - Rails Data Modelling: How can I model a has_many relationship that's actually a collection of another model? - Stack Overflow ruby - Rails Data Modelling: How can I model a has_many relationship that's actually a collection of another model? - Stack Overflow](https://i.stack.imgur.com/pOjjJ.jpg)