Sha256: 76096955a1c077b5aad9f44930b32f52742bc12684471cd2219458020e336362

Contents?: true

Size: 488 Bytes

Versions: 12

Compression:

Stored size: 488 Bytes

Contents

module BridgeCache
  class CustomField < BridgeBaseModel
    extend BridgeCache::Data::BridgeModel

    belongs_to :domain, foreign_key: :domain_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Domain.name, optional: true
    has_many :learner_custom_field_values, primary_key: BridgeCache.primary_key, foreign_key: :custom_field_id, class_name: BridgeCache::LearnerCustomFieldValue.name

    def self.unique_column_names
      %w[bridge_id domain_id]
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bridge_cache-0.3.19 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.17 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.16 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.15 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.14 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.13 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.12 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.11 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.10 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.9 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.8 app/models/bridge_cache/custom_field.rb
bridge_cache-0.3.7 app/models/bridge_cache/custom_field.rb