Sha256: 3a50b83f430283e60c94ae2ccf698e1cb67f651d9daf88a57116892d32742e4c
Contents?: true
Size: 620 Bytes
Versions: 8
Compression:
Stored size: 620 Bytes
Contents
# # AUTO GENERATED MODEL # This model was auto generated by the CanvasSync Gem. # You can customize it as needed, but make sure you test # any changes you make to the auto generated methods. # class Assignment < ApplicationRecord validates :canvas_assignment_id, uniqueness: true, presence: true belongs_to :context, polymorphic: true, optional: true, primary_key: :canvas_course_id belongs_to :assignment_group, optional: true, primary_key: :canvas_assignment_group_id, foreign_key: :canvas_assignment_group_id has_many :submissions, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id end
Version data entries
8 entries across 8 versions & 1 rubygems