回答編集履歴

1

文字列をシンボルに修正

2018/11/27 03:52

投稿

Ighrs
Ighrs

スコア656

test CHANGED
@@ -64,13 +64,13 @@
64
64
 
65
65
  has_many :active_follows, class_name: "Follow",
66
66
 
67
- foreign_key: "follower_id",
67
+ foreign_key: :follower_id,
68
68
 
69
69
  dependent: :destroy
70
70
 
71
71
  has_many :passive_follows, class_name: "Follow",
72
72
 
73
- foreign_key: "followed_id",
73
+ foreign_key: :followed_id,
74
74
 
75
75
  dependent: :destroy
76
76