Sha256: cfe762fb07b712061deb18386195161f1fb4c358bb08e00e17f9908f86e46b87

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 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
  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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canvas_sync-0.10.2 spec/dummy/app/models/context_module_item.rb
canvas_sync-0.10.0 spec/dummy/app/models/context_module_item.rb