lib/canvas_sync/generators/templates/models/section.rb in canvas_sync-0.12.0 vs lib/canvas_sync/generators/templates/models/section.rb in canvas_sync-0.13.0

- old
+ new

@@ -1,8 +1,9 @@ # <%= autogenerated_model_warning %> class Section < ApplicationRecord - include CanvasSync::ApiSyncable + include CanvasSync::Record + include CanvasSync::Concerns::ApiSyncable validates :canvas_id, uniqueness: true, presence: true belongs_to :course, primary_key: :canvas_id, foreign_key: :canvas_course_id, optional: true has_many :enrollments, primary_key: :canvas_id, foreign_key: :canvas_section_id