Sha256: 369d6c6146661ff343f56d1fb3f626624e31912d02463d7dd0d447ab8c590a27
Contents?: true
Size: 532 Bytes
Versions: 26
Compression:
Stored size: 532 Bytes
Contents
<%= autogenerated_migration_warning %> # 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