Sha256: 69acf17f947d0a31b22f235545e764aad24d4a7ee1caeb07420068b5a9dce188
Contents?: true
Size: 642 Bytes
Versions: 5
Compression:
Stored size: 642 Bytes
Contents
<%= autogenerated_model_warning %> class Section < ApplicationRecord include CanvasSync::ApiSyncable validates :canvas_section_id, uniqueness: true, presence: true belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true has_many :enrollments, primary_key: :canvas_section_id, foreign_key: :canvas_section_id api_syncable({ sis_id: :sis_id, canvas_course_id: :canvas_course_id, canvas_nonxlist_course_id: :canvas_nonxlist_course_id, name: :name, status: :status, start_date: :start_at, end_date: :end_at, }, -> (api) { api.section(canvas_section_id) }) end
Version data entries
5 entries across 5 versions & 1 rubygems