Sha256: 7b2ac516dac6d45b8bfad8c7382486900fd00bb1151afefa63c70846c85dabf6
Contents?: true
Size: 556 Bytes
Versions: 9
Compression:
Stored size: 556 Bytes
Contents
module BridgeCache class GroupEnrollment < ApplicationRecord extend BridgeCache::Data::BridgeModel def self.for_domain(domain_id) joins(:course_template).where(bridge_cache_course_templates: { domain_id: domain_id }) end belongs_to :group, foreign_key: :group_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Group.name, optional: true belongs_to :course_template, foreign_key: :course_template_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::CourseTemplate.name, optional: true end end
Version data entries
9 entries across 9 versions & 1 rubygems