Sha256: 943a7893fd0a5350b7faca265052f8d0a923e5a40c9e9b08617e01745c886a81

Contents?: true

Size: 701 Bytes

Versions: 2

Compression:

Stored size: 701 Bytes

Contents

# #
# AUTO GENERATED MODEL
# This model was auto generated by the CanvasSync Gem.
# You can customize it as needed, but make sure you test
# any changes you make to the auto generated methods.
#


# CourseProgress is not a Canvas model. It is a table built from the Custom Report
class CourseProgress < ApplicationRecord
  include CanvasSync::Record

  canvas_sync_features :defaults

  belongs_to :user, primary_key: :canvas_id, foreign_key: :canvas_user_id, optional: true
  belongs_to :course, primary_key: :canvas_id, foreign_key: :canvas_course_id, optional: true

  validates_presence_of :canvas_user_id, :canvas_course_id
  validates_uniqueness_of :canvas_user_id, scope: :canvas_course_id
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canvas_sync-0.22.5 spec/dummy/app/models/course_progress.rb
canvas_sync-0.22.4 spec/dummy/app/models/course_progress.rb