Sha256: fca7ccf275e5176d10077a2b0c966651afbc09fd8ff553198b115f5468f7ee17
Contents?: true
Size: 903 Bytes
Versions: 104
Compression:
Stored size: 903 Bytes
Contents
# # # # AUTO GENERATED MIGRATION # This migration was auto generated by the CanvasSync Gem. # You can add new columns to this table, but removing or # re-naming ones created here may break Canvas Syncing. # class ContextModuleItem < ApplicationRecord include CanvasSync::Record include CanvasSync::Concerns::ApiSyncable belongs_to :context_module, primary_key: :canvas_id, foreign_key: :canvas_context_module_id, optional: true belongs_to :content, polymorphic: true, optional: true, primary_key: :canvas_id, foreign_key: :canvas_content_id, foreign_type: :canvas_content_type belongs_to :assignment, foreign_key: :canvas_assignment_id, primary_key: :canvas_id api_syncable({ # TODO If your tool Syncs ContextModuleItems, please complete this and merge it into CanvasSync }, -> (api) { api.module_item(context_module.context.canvas_id, context_module.canvas_id, canvas_id) }) end
Version data entries
104 entries across 104 versions & 1 rubygems