質問編集履歴
1
rails g modelの箇所を修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
```
|
13
13
|
rails g model User name:string
|
14
14
|
rails g model Post body: text user:references
|
15
|
-
rails g model Comment body:text post:references
|
15
|
+
rails g model Comment body:text post:references user_id: integer
|
16
16
|
```
|
17
17
|
|
18
18
|
```
|