Sha256: 476dca365b0bf8d61886af65d0cde302cf14a7f995427573822d233a7cf23d21
Contents?: true
Size: 454 Bytes
Versions: 27
Compression:
Stored size: 454 Bytes
Contents
<%= autogenerated_model_warning %> class Submission < ApplicationRecord validates :canvas_submission_id, uniqueness: true, presence: true belongs_to :assignment, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id, optional: true belongs_to :user, primary_key: :canvas_user_id, foreign_key: :canvas_user_id, optional: true belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true end
Version data entries
27 entries across 27 versions & 1 rubygems