Skip to content

Commit c0f1c0c

Browse files
feat product.rb: #7
fix has one association.
1 parent 17e4646 commit c0f1c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/product.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Product < ApplicationRecord
3838
has_one_attached :image
3939
has_many :simplo_items
4040
has_one :store
41-
has_one :stock, foreign_key: :bling_product_id
41+
has_one :stock
4242

4343
with_options presence: true do
4444
validates :name

0 commit comments

Comments
 (0)