質問編集履歴
2
へこう
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
class Product < ApplicationRecord
|
38
38
|
|
39
|
-
has_many :product_
|
39
|
+
has_many :product_tags
|
40
40
|
|
41
41
|
has_many :tags, through: :product_tags
|
42
42
|
|
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
has_many :product_categories
|
40
40
|
|
41
|
-
has_many :
|
41
|
+
has_many :tags, through: :product_tags
|
42
42
|
|
43
43
|
end
|
44
44
|
|