I have three tables: groups, memberships, and users. When a user creates
group I need to make sure that a membership in that group is also
have considered using transactions but I keep seeing that these are
deprecated. Is there some other practice that is simpler or preferred?
[has_many :users, through :memberships]
[has_many :groups, through membership]
David Andrew T.