Sha256: 95e573f1deb454c7a2132d26da26aebf70682604fd277fef15992ded34aeffe9
Contents?: true
Size: 596 Bytes
Versions: 35
Compression:
Stored size: 596 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 User < ApplicationRecord validates :canvas_user_id, uniqueness: true, presence: true has_many :enrollments, primary_key: :canvas_user_id, foreign_key: :canvas_user_id has_many :admins, foreign_key: :canvas_user_id, primary_key: :canvas_user_id has_many :admin_roles, through: :admins, source: :role has_many :submissions, primary_key: :canvas_user_id, foreign_key: :canvas_user_id end
Version data entries
35 entries across 35 versions & 1 rubygems