Sha256: 4b69b8789315e766d6cb2d63376d5fe2fa3ed1bf36d02e3d4e520a1a767c2dda
Contents?: true
Size: 615 Bytes
Versions: 13
Compression:
Stored size: 615 Bytes
Contents
module CoalescingPanda class User < ActiveRecord::Base belongs_to :account, foreign_key: :coalescing_panda_lti_account_id, class_name: 'CoalescingPanda::LtiAccount' has_many :enrollments, foreign_key: :coalescing_panda_user_id, class_name: 'CoalescingPanda::Enrollment' has_many :submissions, foreign_key: :coalescing_panda_user_id, class_name: 'CoalescingPanda::Submission' has_many :sections, through: :enrollments has_many :courses, through: :sections store :roles validates :coalescing_panda_lti_account_id, presence: true validates :canvas_user_id, presence: true end end
Version data entries
13 entries across 13 versions & 1 rubygems