Sha256: 5b6af885f6a5b72c9a504069d6d4ab26dce706b267a6d33c3126a4832fa031af
Contents?: true
Size: 530 Bytes
Versions: 9
Compression:
Stored size: 530 Bytes
Contents
module BridgeCache class LearnerCustomFieldValue < ApplicationRecord extend BridgeCache::Data::BridgeModel def self.for_domain(domain_id) joins(:user).where(bridge_cache_users: { domain_id: domain_id }) end belongs_to :user, foreign_key: :user_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::User.name, optional: true belongs_to :custom_field, foreign_key: :custom_field_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::CustomField.name, optional: true end end
Version data entries
9 entries across 9 versions & 1 rubygems