Displaying 1 result from an estimated 1 matches for "joooooo".
Did you mean:
soooooo
2009 Jan 25
1
habtm relation and dependent => :destroy
...lation between 2 tables:
- users
- rights
If there a way to affect a destroy dependance on those 2 tables only for
the last instance? In my opinion, dependent => :destroy is not the
solution because this delete all the linked instance.
For example, if I have:
# in User model this:
- "Joooooo"
- "Jeannnn"
- "Tommmm"
# in Right model this:
- "Write"
- "Read"
# in the habtm relation this:
- "Joooooo" can "Write"
- "Joooooo" can "Read"
- "Jeannnn" can "Read"
I would like...