質問編集履歴
2
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
DM一覧機能を作りたい
|
1
|
+
Ruby on RailsでDM一覧機能を作りたい
|
test
CHANGED
File without changes
|
1
モデルの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -81,3 +81,45 @@
|
|
81
81
|
end
|
82
82
|
|
83
83
|
```
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
### モデル
|
88
|
+
|
89
|
+
**chat_rooms**
|
90
|
+
|
91
|
+
|カラム名|データ型|
|
92
|
+
|
93
|
+
|:--|:--:|
|
94
|
+
|
95
|
+
|id|integer|
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
**chat_room_users**
|
100
|
+
|
101
|
+
|カラム名|データ型|
|
102
|
+
|
103
|
+
|:--|:--:|
|
104
|
+
|
105
|
+
|id|integer|
|
106
|
+
|
107
|
+
|chat_room_id|integer|
|
108
|
+
|
109
|
+
|user_id|integer|
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
**chat_messages**
|
114
|
+
|
115
|
+
|カラム名|データ型|
|
116
|
+
|
117
|
+
|:--|:--:|
|
118
|
+
|
119
|
+
|id|integer|
|
120
|
+
|
121
|
+
|chat_room_id|integer|
|
122
|
+
|
123
|
+
|user_id|integer|
|
124
|
+
|
125
|
+
|message|string|
|