Sha256: 5e700f1d1f8a228127cc56037be89040b5a14e9e5160c48d2792665c274bc2e0

Contents?: true

Size: 624 Bytes

Versions: 28

Compression:

Stored size: 624 Bytes

Contents

# <%= autogenerated_model_warning %>

class RubricAssociation < ApplicationRecord
  include CanvasSync::Record
  include CanvasSync::Concerns::ApiSyncable

  canvas_sync_features :defaults

  validates :canvas_id, uniqueness: true, presence: true
  belongs_to :rubric, primary_key: :canvas_id, foreign_key: :canvas_rubric_id, optional: true
  belongs_to :association_object, polymorphic: true, primary_key: :canvas_id, foreign_type: :canvas_association_type, optional: true
  belongs_to :context, polymorphic: true, primary_key: :canvas_id, foreign_key: :canvas_context_id, optional: true
  has_many :rubric_assessments
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
canvas_sync-0.21.0.beta5 lib/canvas_sync/generators/templates/models/rubric_association.rb
canvas_sync-0.21.0.beta4 lib/canvas_sync/generators/templates/models/rubric_association.rb
canvas_sync-0.21.0.beta3 lib/canvas_sync/generators/templates/models/rubric_association.rb
canvas_sync-0.21.0.beta2 lib/canvas_sync/generators/templates/models/rubric_association.rb
canvas_sync-0.21.0.beta1 lib/canvas_sync/generators/templates/models/rubric_association.rb
canvas_sync-0.20.5 lib/canvas_sync/generators/templates/models/rubric_association.rb
canvas_sync-0.20.4 lib/canvas_sync/generators/templates/models/rubric_association.rb
canvas_sync-0.20.3 lib/canvas_sync/generators/templates/models/rubric_association.rb