Skip to content

Messages belong to users/rooms vs belonging to participants #2

Description

@fastjames

Hello, and thanks for putting together your chat tutorial. As I was following along, I noticed in

belongs_to :user

that Message appears to restate the associations in Participant (belongs_to user and room). Is there a reason to prefer this over making a Message belong_to participant? I couldn't think of one but you're the one who wrote the tutorial so I figured you might have some experience that caused you to make that specific choice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions