Sha256: a88ecb050d25063fa71b0b49bd9d8d68a20191d1bf3d4406df4036028fb4bae0
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 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. # # A ContextModule is the same as a Canvas Module. They're called ContextModules for 2 reasons: # 1 - Module is a reserved word in Rails and you can't call a model a Module # 2 - Canvas calls them ContextModules class ContextModule < ApplicationRecord belongs_to :context, polymorphic: true, optional: true, primary_key: :canvas_id, foreign_key: :canvas_context_id, foreign_type: :canvas_context_type has_many :context_module_items, primary_key: :canvas_id, foreign_key: :canvas_context_module_id has_many :assignments, through: :context_module_items end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canvas_sync-0.10.2 | spec/dummy/app/models/context_module.rb |
canvas_sync-0.10.0 | spec/dummy/app/models/context_module.rb |