Sha256: e8d044131be5b93bb8dd222885525ddfa66df70bea0f1037cb74cd7f250def08

Contents?: true

Size: 564 Bytes

Versions: 23

Compression:

Stored size: 564 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 Course < ApplicationRecord
  validates :canvas_course_id, uniqueness: true, presence: true
  belongs_to :term, foreign_key: :canvas_term_id, primary_key: :canvas_term_id, optional: true
  has_many :enrollments, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
  has_many :sections, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
canvas_sync-0.3.11 spec/dummy/app/models/course.rb
canvas_sync-0.3.10 spec/dummy/app/models/course.rb
canvas_sync-0.3.9 spec/dummy/app/models/course.rb
canvas_sync-0.3.8 spec/dummy/app/models/course.rb
canvas_sync-0.3.7 spec/dummy/app/models/course.rb
canvas_sync-0.3.6 spec/dummy/app/models/course.rb
canvas_sync-0.3.5 spec/dummy/app/models/course.rb
canvas_sync-0.3.3 spec/dummy/app/models/course.rb
canvas_sync-0.3.2 spec/dummy/app/models/course.rb
canvas_sync-0.3.1 spec/dummy/app/models/course.rb
canvas_sync-0.3.0 spec/dummy/app/models/course.rb
canvas_sync-0.2.4 spec/dummy/app/models/course.rb
canvas_sync-0.2.3 spec/dummy/app/models/course.rb
canvas_sync-0.2.2 spec/dummy/app/models/course.rb
canvas_sync-0.2.1 spec/dummy/app/models/course.rb
canvas_sync-0.2.0 spec/dummy/app/models/course.rb
canvas_sync-0.1.8 spec/dummy/app/models/course.rb
canvas_sync-0.1.7 spec/dummy/app/models/course.rb
canvas_sync-0.1.5 spec/dummy/app/models/course.rb
canvas_sync-0.1.4 spec/dummy/app/models/course.rb