質問編集履歴
1
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -95,3 +95,35 @@
|
|
95
95
|
|
96
96
|
|
97
97
|
もし知っている方がいらっしゃるようでしたら、教えて頂きたいです。
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
### 追加
|
104
|
+
|
105
|
+
```Ruby
|
106
|
+
|
107
|
+
create_table "comments", force: :cascade do |t|
|
108
|
+
|
109
|
+
t.integer "user_id"
|
110
|
+
|
111
|
+
t.integer "idea_id"
|
112
|
+
|
113
|
+
t.text "comment"
|
114
|
+
|
115
|
+
t.datetime "created_at", null: false
|
116
|
+
|
117
|
+
t.datetime "updated_at", null: false
|
118
|
+
|
119
|
+
t.index ["idea_id", "created_at"], name: "index_comments_on_idea_id_and_created_at"
|
120
|
+
|
121
|
+
t.index ["idea_id"], name: "index_comments_on_idea_id"
|
122
|
+
|
123
|
+
t.index ["user_id", "created_at"], name: "index_comments_on_user_id_and_created_at"
|
124
|
+
|
125
|
+
t.index ["user_id"], name: "index_comments_on_user_id"
|
126
|
+
|
127
|
+
end
|
128
|
+
|
129
|
+
```
|