Skip to content

Commit 0109d9d

Browse files
committed
[ci skip][docs] Keep Product model associations consistent
1 parent 4077fe0 commit 0109d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,9 +2261,9 @@ emails anytime the inventory count changes from 0 to a positive number.
22612261
22622262
```ruby#9-19
22632263
class Product < ApplicationRecord
2264+
has_many :subscribers, dependent: :destroy
22642265
has_one_attached :featured_image
22652266
has_rich_text :description
2266-
has_many :subscribers, dependent: :destroy
22672267
22682268
validates :name, presence: true
22692269
validates :inventory_count, numericality: { greater_than_or_equal_to: 0 }

0 commit comments

Comments
 (0)