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

Version Path
comfortable_mexican_sofa-2.0.19 app/models/comfy/cms/categorization.rb
PixelForce_ETS-0.0.2 app/models/comfy/cms/categorization.rb
PixelForce_ETS-0.0.1 app/models/comfy/cms/categorization.rb
kcyEtsTest2-0.0.4 app/models/comfy/cms/categorization.rb
kcyEtsTest2-0.0.3 app/models/comfy/cms/categorization.rb
kcyEtsTest2-0.0.2 app/models/comfy/cms/categorization.rb
kcyEtsTest2-0.0.1 app/models/comfy/cms/categorization.rb
kcyEtsTest-0.0.1 app/models/comfy/cms/categorization.rb
kcyEtsTest-2.2.19 app/models/comfy/cms/categorization.rb
ComfortableMexicanSofa-2.0.18 app/models/comfy/cms/categorization.rb
kcy1-1.0 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.18 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.17 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.16 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.15 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.14 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.13 app/models/comfy/cms/categorization.rb