When I have a habtm association between two models (User & List),
thru a join table users_lists, there are a variety of ways to “delete”
associations between specific User<->List combinations.
ActiveRecord lists delete, clear etc.
However, these methods all operate by setting foreign keys in the join
to nil and do not remove rows from the join table.
Q1: isn’t the join table going to contain a LOT of useless records with
one column value after a period of time (after deleting many individual
User/List associations etc.)
Q2. is there a way to break an association between a specific User/List
by DELETING the row in the join table? (instead of setting a foreign key
column value to NIL)
thanks, can’t find an answer to this thru usual sources. In fact, there
almost no examples I could find of deleting associations for HABTM
few examples now for setting them up though)