Sha256: f232d3662890d03adfe65abb6c6d43e17aa4c9e64abde339c749d682f4ea4a84
Contents?: true
Size: 464 Bytes
Versions: 17
Compression:
Stored size: 464 Bytes
Contents
# frozen_string_literal: true class Comfy::Cms::Categorization < ActiveRecord::Base self.table_name = "comfy_cms_categorizations" # -- Relationships ----------------------------------------------------------- belongs_to :category belongs_to :categorized, polymorphic: true # -- Validations ------------------------------------------------------------- validates :category_id, uniqueness: { scope: %i[categorized_type categorized_id] } end
Version data entries
17 entries across 17 versions & 6 rubygems