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

Version Path
canvas_sync-0.9.4 spec/dummy/app/models/user.rb
canvas_sync-0.9.3 spec/dummy/app/models/user.rb
canvas_sync-0.9.2 spec/dummy/app/models/user.rb
canvas_sync-0.9.1 spec/dummy/app/models/user.rb
canvas_sync-0.9.0 spec/dummy/app/models/user.rb
canvas_sync-0.8.4 spec/dummy/app/models/user.rb
canvas_sync-0.8.3 spec/dummy/app/models/user.rb
canvas_sync-0.8.2 spec/dummy/app/models/user.rb
canvas_sync-0.8.1 spec/dummy/app/models/user.rb
canvas_sync-0.8.0 spec/dummy/app/models/user.rb
canvas_sync-0.7.3 spec/dummy/app/models/user.rb
canvas_sync-0.7.2 spec/dummy/app/models/user.rb
canvas_sync-0.7.1 spec/dummy/app/models/user.rb
canvas_sync-0.7.0 spec/dummy/app/models/user.rb
canvas_sync-0.6.4 spec/dummy/app/models/user.rb
canvas_sync-0.6.3 spec/dummy/app/models/user.rb
canvas_sync-0.6.2 spec/dummy/app/models/user.rb
canvas_sync-0.6.1 spec/dummy/app/models/user.rb
canvas_sync-0.6.0 spec/dummy/app/models/user.rb
canvas_sync-0.5.4 spec/dummy/app/models/user.rb