Skip to content

Commit c56a5bb

Browse files
Merge dependent_destroy into staging
2 parents 525364b + 4d4c8d3 commit c56a5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/woo_product.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class WooProduct < ApplicationRecord
22
# Disable single table inheritance
33
self.inheritance_column = nil
4-
has_many :woo_product_bundles
4+
has_many :woo_product_bundles, foreign_key: :product_id, dependent: :destroy
55
end

0 commit comments

Comments
 (0)