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

Version Path
coalescing_panda-4.1.13 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.12 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.11 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.10 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.9 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.8 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.7 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.6 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.5 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.4 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.3 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.2 app/models/coalescing_panda/assignment.rb
coalescing_panda-4.1.1 app/models/coalescing_panda/assignment.rb