added chatroom channel with room ids and notifications channel

This commit is contained in:
Beatrice Olivera
2018-08-30 03:00:09 +01:00
parent f0bca74f89
commit 405d2cd5df
17 changed files with 699 additions and 25 deletions

View File

@@ -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

View File

@@ -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