Open remiboivin-zz opened 4 years ago
class User
has_many :conversations, thorough: :user_conversations
has_many :messages
end
class Conversation
has_many :users through: :user_conversations
has_many :messages
end
class Message
belongs_to :user
belongs_to :conversation
end
class UserConversation
belongs_to :user
belongs_to :conversation
end
@remiboivin please review
Creating a private messaging for members