Sha256: aa0fe76e8bf82417e6e429421754bf6b2c2b04db228b99dfba95bb29772403d8

Contents?: true

Size: 826 Bytes

Versions: 26

Compression:

Stored size: 826 Bytes

Contents

# <%= autogenerated_model_warning %>

class RubricAssessment < 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 :rubric_association, primary_key: :canvas_id, foreign_key: :canvas_rubric_association_id, optional: true
  belongs_to :user, primary_key: :canvas_id, foreign_key: :canvas_user_id, optional: true
  belongs_to :assessor, class_name: "User", primary_key: :canvas_id, foreign_key: :canvas_assessor_id, optional: true
  belongs_to :artifact, polymorphic: true, primary_key: :canvas_id, foreign_type: :canvas_artifact_type, foreign_key: :canvas_artifact_id, optional: true

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.21.0.beta5 lib/canvas_sync/generators/templates/models/rubric_assessment.rb
canvas_sync-0.21.0.beta4 lib/canvas_sync/generators/templates/models/rubric_assessment.rb