Sha256: 3a5b046057c80af69808082ecb388d763be63ff93dbe1b6e5c0f39d18b98bb67
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 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 has_many :assignments, as: :context, primary_key: :canvas_course_id end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canvas_sync-0.3.13 | spec/dummy/app/models/course.rb |
canvas_sync-0.3.12 | spec/dummy/app/models/course.rb |