I'm trying to create a join table between 2 models that has 3 columns. The models are called User
and Dare
. The join table is called DaresUsers
. And what I want to include in the join table is an author_id
, accepter_id
, dare_id
.
Each dare will only have one author but will have many accepters
because more than one user can accept the same dare. Should I use a has_many through
relationship and if so what would I declare in my models? My confusion here is because the User
model is referenced by the join table in two respects: the author_id
and accepter_id
.
Thanks for any help!