質問編集履歴

1

rails g modelの箇所を修正

2016/02/29 05:07

投稿

ayu
ayu

score212

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  rails g model Post body: text user:references
28
28
 
29
- rails g model Comment body:text post:references
29
+ rails g model Comment body:text post:references user_id: integer
30
30
 
31
31
  ```
32
32