Sha256: 563773e207d7ed66350c7a4df4992f950fa393bf494e1a8f69c0c9fb9ae66f99

Contents?: true

Size: 985 Bytes

Versions: 20

Compression:

Stored size: 985 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
  # include CanvasSync::Concerns::LiveEventSync

  canvas_sync_features :defaults

  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

20 entries across 20 versions & 1 rubygems

Version Path
canvas_sync-0.22.3 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.2 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.1 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta8 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta7 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta6 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta5 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta4 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta3 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta2 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.22.0.beta1 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.1 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.1.beta1 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.0 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.0.beta5 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.0.beta4 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.0.beta3 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.0.beta2 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.21.0.beta1 spec/dummy/app/models/context_module_item.rb