Sha256: edc4656293525b0c81c026c299ff0f87385c905f045ba54bf4d4a78d2008e4a2
Contents?: true
Size: 471 Bytes
Versions: 7
Compression:
Stored size: 471 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' 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
7 entries across 7 versions & 1 rubygems