Sha256: 0dfff060f3217ca8147078928840f3aa23605832c57f79febffe5371343e0a0d
Contents?: true
Size: 752 Bytes
Versions: 75
Compression:
Stored size: 752 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' belongs_to :group_category, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::GroupCategory' 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
75 entries across 75 versions & 1 rubygems