Sha256: 003d3a5c02e7d228d3574b91d621befcd4eb4ef1f0013ab3bc9c83ec4b5cd9c9

Contents?: true

Size: 604 Bytes

Versions: 60

Compression:

Stored size: 604 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.
#


class Enrollment < ApplicationRecord
  validates :canvas_enrollment_id, uniqueness: true, presence: true
  belongs_to :user, primary_key: :canvas_user_id, foreign_key: :canvas_user_id, optional: true
  belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true
  belongs_to :section, primary_key: :canvas_section_id, foreign_key: :canvas_section_id, optional: true
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
canvas_sync-0.5.3 spec/dummy/app/models/enrollment.rb
canvas_sync-0.5.2 spec/dummy/app/models/enrollment.rb
canvas_sync-0.5.1 spec/dummy/app/models/enrollment.rb
canvas_sync-0.4.1 spec/dummy/app/models/enrollment.rb
canvas_sync-0.4.0 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.23 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.22 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.21 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.20 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.19 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.18 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.17 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.16 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.15 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.14 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.13 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.12 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.11 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.10 spec/dummy/app/models/enrollment.rb
canvas_sync-0.3.9 spec/dummy/app/models/enrollment.rb