Sha256: fb6d7ab55d9d7a2906aba84d4e78102cf29e2c92e67e190e01fc7c36a9b5bdc0
Contents?: true
Size: 857 Bytes
Versions: 3
Compression:
Stored size: 857 Bytes
Contents
module BridgeCache class LiveCourseSession < BridgeBaseModel extend BridgeCache::Data::BridgeModel def self.for_domain(domain_id) joins(:live_course).merge(BridgeCache::LiveCourse.for_domain(domain_id)) end belongs_to :domain, foreign_key: :domain_id, primary_key: BridgeCache.primary_key, class_name: 'BridgeCache::Domain', optional: true belongs_to :sub_account, foreign_key: :sub_account_id, primary_key: BridgeCache.primary_key, class_name: 'BridgeCache::Domain', optional: true belongs_to :live_course, foreign_key: :live_course_id, primary_key: BridgeCache.primary_key, class_name: 'BridgeCache::LiveCourse', optional: true has_many :live_course_session_registrations, foreign_key: :live_course_session_id, primary_key: BridgeCache.primary_key, class_name: 'BridgeCache::LiveCourseSessionRegistration' end end
Version data entries
3 entries across 3 versions & 1 rubygems