Displaying 1 result from an estimated 1 matches for "d65f018e".
Did you mean:
d55f0188
2006 Apr 04
4
Help with many-to-many using :through
I am using many-to-many using :through since I need to store additional
information in the join table.
I am doing this and it seems to work. I want to verify that this is the best
way to do this.
Tables
foods - id, food
foodallergies - food_id, symptom_id, a few other columns
symptoms - id, symptom
Models
class Food < ActiveRecord::Base
has_many :foodallergies
has_many :symptoms,