Sha256: 164ddc1237b545815fd0ff928487e293a31a0386bdbcdef96ef28f29486c6532

Contents?: true

Size: 512 Bytes

Versions: 7

Compression:

Stored size: 512 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
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
canvas_sync-0.3.13 spec/dummy/app/models/user.rb
canvas_sync-0.3.12 spec/dummy/app/models/user.rb
canvas_sync-0.3.11 spec/dummy/app/models/user.rb
canvas_sync-0.3.10 spec/dummy/app/models/user.rb
canvas_sync-0.3.9 spec/dummy/app/models/user.rb
canvas_sync-0.3.8 spec/dummy/app/models/user.rb
canvas_sync-0.3.7 spec/dummy/app/models/user.rb