質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,6 +66,26 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
+
(message.rb)
|
70
|
+
|
71
|
+
```ここに言語名を入力
|
72
|
+
|
73
|
+
class Message < ApplicationRecord
|
74
|
+
|
75
|
+
belongs_to :user
|
76
|
+
|
77
|
+
belongs_to :room
|
78
|
+
|
79
|
+
has_many :notifications, dependent: :destroy
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
```
|
86
|
+
|
87
|
+
|
88
|
+
|
69
89
|
(notifications_controller.rb)
|
70
90
|
|
71
91
|
```ここに言語名を入力
|