Sha256: 9a2b441a0025edde2e06723cf4152644e62fb8ee1cb34fd32c2b1ccad595b5bc
Contents?: true
Size: 625 Bytes
Versions: 13
Compression:
Stored size: 625 Bytes
Contents
module CoalescingPanda class Assignment < ActiveRecord::Base belongs_to :course, foreign_key: :coalescing_panda_course_id, class_name: 'CoalescingPanda::Course' belongs_to :assignment_group, foreign_key: :coalescing_panda_assignment_group_id, class_name: 'CoalescingPanda::AssignmentGroup' has_many :submissions, foreign_key: :coalescing_panda_assignment_id, class_name: 'CoalescingPanda::Submission', dependent: :destroy delegate :account, to: :course validates :coalescing_panda_course_id, presence: true validates :canvas_assignment_id, presence: true serialize :submission_types end end
Version data entries
13 entries across 13 versions & 1 rubygems