質問編集履歴
1
ソースコードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -56,7 +56,19 @@
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
```
|
59
|
+
マイグレーション
|
60
|
+
```class CreateReplies < ActiveRecord::Migration[5.0]
|
61
|
+
def change
|
62
|
+
create_table :replies do |t|
|
63
|
+
t.references :user, foreign_key: true
|
64
|
+
t.references :micropost, foreign_key: true
|
65
|
+
t.string :content
|
59
66
|
|
67
|
+
t.timestamps
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
```
|
60
72
|
### 試したこと
|
61
73
|
|
62
74
|
他のファイルでparamに関係しているところをチェックした。
|