class Category < ApplicationRecord
  has_rich_text :description
  has_one_attached :image
  # Use lowercase association name so ActiveRecord sets up `category.products`
  has_many :products, dependent: :destroy
end
