# # # 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. # # CourseProgress is not a Canvas model. It is a table built from the Custom Report class CourseProgress < ApplicationRecord include CanvasSync::Record canvas_sync_features :defaults belongs_to :user, primary_key: :canvas_id, foreign_key: :canvas_user_id, optional: true belongs_to :course, primary_key: :canvas_id, foreign_key: :canvas_course_id, optional: true validates_presence_of :canvas_user_id, :canvas_course_id validates_uniqueness_of :canvas_user_id, scope: :canvas_course_id end