Sha256: 9922247b48916b67c599951d344a9c4a294225fd7b8dcb4e3496b414068a94de

Contents?: true

Size: 915 Bytes

Versions: 29

Compression:

Stored size: 915 Bytes

Contents

# frozen_string_literal: true

# # #
# 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.
#


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

  canvas_sync_features :defaults

  belongs_to :context, polymorphic: true, optional: true, primary_key: :canvas_id, foreign_key: :canvas_context_id, foreign_type: :canvas_context_type

  api_syncable({
    canvas_id: :id,
    canvas_context_id: :context_id,
    canvas_context_type: :context_type,
    name: :title,
    friendly_name: :display_name,
    vendor_guid: :vendor_guid,
    calculation_method: :calculation_method,
    calculation_int: :calculation_int,
    description: :description
  }, ->(api) { api.get("/api/v1/outcomes/#{canvas_id}") })
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
canvas_sync-0.22.6 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.5 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.4 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.3 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.2 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.1 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta8 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta7 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta6 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta5 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta4 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta3 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta2 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.22.0.beta1 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.21.1 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.21.1.beta1 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.21.0 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.21.0.beta5 spec/dummy/app/models/learning_outcome.rb
canvas_sync-0.21.0.beta4 spec/dummy/app/models/learning_outcome.rb