回答編集履歴
1
typo
answer
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
class User < ApplicationRecord
|
5
5
|
has_many :entries
|
6
6
|
has_many :comments
|
7
|
-
has_many :
|
7
|
+
has_many :entry_comments, class_name: 'Comment', foreign_key: :entry_id
|
8
8
|
end
|
9
9
|
```
|