mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 10:42:11 +00:00
added chatroom channel with room ids and notifications channel
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class ChatRoom < ApplicationRecord
|
||||
has_many :users, through: :chat_room_participations
|
||||
has_many :chat_room_participations
|
||||
has_many :users, through: :chat_room_participations
|
||||
has_many :requests
|
||||
end
|
||||
|
||||
@@ -5,8 +5,8 @@ class User < ApplicationRecord
|
||||
:recoverable, :rememberable, :validatable
|
||||
|
||||
has_many :connections
|
||||
has_many :chat_rooms, through: :chat_room_participations
|
||||
has_many :chat_room_participations
|
||||
has_many :chat_rooms, through: :chat_room_participations
|
||||
has_many :requests
|
||||
|
||||
def contacts
|
||||
|
||||
Reference in New Issue
Block a user