Sha256: afff55142cdd6d0817f6fc31c62580d9315f5e8ba9c7fca56d8802895b8681af
Contents?: true
Size: 492 Bytes
Versions: 6
Compression:
Stored size: 492 Bytes
Contents
module CoalescingPanda class Assignment < ActiveRecord::Base belongs_to :course, foreign_key: :coalescing_panda_course_id, class_name: 'CoalescingPanda::Course' 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
6 entries across 6 versions & 1 rubygems