My app has User. These users belong to one or many groups. Obviously groups can have many users.
How do I do this in Rails? Is this a has many or a has many through association? What is the name of the third model if it's "has many through"? Nothing seems to make sense. Or is it just something like "group-user-link"?
If I have user_id and group_id in the respective tables, what happends when a User has multiple groups?