Skip to content

Commit

Permalink
feat product.rb: #7
Browse files Browse the repository at this point in the history
fix has one association.
  • Loading branch information
Pauloparakleto committed Dec 22, 2023
1 parent 17e4646 commit c0f1c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Product < ApplicationRecord
has_one_attached :image
has_many :simplo_items
has_one :store
has_one :stock, foreign_key: :bling_product_id
has_one :stock

with_options presence: true do
validates :name
Expand Down

0 comments on commit c0f1c0c

Please sign in to comment.