質問編集履歴

1

情報追記

2020/09/04 08:44

投稿

hurousyotoku500
hurousyotoku500

スコア27

test CHANGED
File without changes
test CHANGED
@@ -57,3 +57,19 @@
57
57
 
58
58
 
59
59
  ```
60
+
61
+ ```
62
+
63
+ class AddUserToTasks < ActiveRecord::Migration[5.2]
64
+
65
+ def change
66
+
67
+ add_reference :tasks, :user, foreign_key: true
68
+
69
+ end
70
+
71
+ end
72
+
73
+
74
+
75
+ ```