Sha256: 28610ab7d17414da7de20267ee74b1e1660d3a8a3c829606b7c2a9bdc37c1ea9
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
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 Enrollment < ApplicationRecord include CanvasSync::Record include CanvasSync::Concerns::ApiSyncable canvas_sync_features :defaults validates :canvas_id, uniqueness: true, presence: true belongs_to :user, primary_key: :canvas_id, foreign_key: :canvas_user_id, optional: true belongs_to :role, primary_key: :canvas_id, foreign_key: :canvas_role_id, optional: true belongs_to :course, primary_key: :canvas_id, foreign_key: :canvas_course_id, optional: true belongs_to :section, primary_key: :canvas_id, foreign_key: :canvas_section_id, optional: true api_syncable({ canvas_id: :id, canvas_course_id: :course_id, course_sis_id: :sis_course_id, canvas_user_id: :user_id, user_sis_id: :sis_user_id, canvas_section_id: :course_section_id, role: :role, canvas_role_id: :role_id, base_role_type: :type, workflow_state: :enrollment_state, }, -> (api) { api.enrollment("self", canvas_id) }) end
Version data entries
6 entries across 6 versions & 1 rubygems