Sha256: 40286a4fd67786be528d8ab1905412273a2de0cbe9d7970f291c019a0d35fc4b

Contents?: true

Size: 697 Bytes

Versions: 26

Compression:

Stored size: 697 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 :canvas_context, polymorphic: true, optional: true
  has_many :context_module_items, primary_key: :canvas_context_module_id, foreign_key: :canvas_context_module_id
  has_many :assignments, through: :context_module_items
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 spec/dummy/app/models/context_module.rb
canvas_sync-0.9.3 spec/dummy/app/models/context_module.rb
canvas_sync-0.9.2 spec/dummy/app/models/context_module.rb
canvas_sync-0.9.1 spec/dummy/app/models/context_module.rb
canvas_sync-0.9.0 spec/dummy/app/models/context_module.rb
canvas_sync-0.8.4 spec/dummy/app/models/context_module.rb
canvas_sync-0.8.3 spec/dummy/app/models/context_module.rb
canvas_sync-0.8.2 spec/dummy/app/models/context_module.rb
canvas_sync-0.8.1 spec/dummy/app/models/context_module.rb
canvas_sync-0.8.0 spec/dummy/app/models/context_module.rb
canvas_sync-0.7.3 spec/dummy/app/models/context_module.rb
canvas_sync-0.7.2 spec/dummy/app/models/context_module.rb
canvas_sync-0.7.1 spec/dummy/app/models/context_module.rb
canvas_sync-0.7.0 spec/dummy/app/models/context_module.rb
canvas_sync-0.6.4 spec/dummy/app/models/context_module.rb
canvas_sync-0.6.3 spec/dummy/app/models/context_module.rb
canvas_sync-0.6.2 spec/dummy/app/models/context_module.rb
canvas_sync-0.6.1 spec/dummy/app/models/context_module.rb
canvas_sync-0.6.0 spec/dummy/app/models/context_module.rb
canvas_sync-0.5.4 spec/dummy/app/models/context_module.rb