Sha256: d257f0e4dc4510daccb8c9691542a54d0dc1e265e8a4c992684a37ec7c5b92ff

Contents?: true

Size: 650 Bytes

Versions: 31

Compression:

Stored size: 650 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 UserObserver < ApplicationRecord
  include CanvasSync::Record
  include CanvasSync::Concerns::ApiSyncable

  canvas_sync_features :defaults

  validates :canvas_id, uniqueness: true, presence: true

  belongs_to :observing_user, primary_key: :canvas_id, foreign_key: :observing_user_id, class_name: 'User', optional: true
  belongs_to :observed_user, primary_key: :canvas_id, foreign_key: :observed_user_id, class_name: 'User', optional: true
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
canvas_sync-0.21.0.beta5 spec/dummy/app/models/user_observer.rb
canvas_sync-0.21.0.beta4 spec/dummy/app/models/user_observer.rb
canvas_sync-0.21.0.beta3 spec/dummy/app/models/user_observer.rb
canvas_sync-0.21.0.beta2 spec/dummy/app/models/user_observer.rb
canvas_sync-0.21.0.beta1 spec/dummy/app/models/user_observer.rb
canvas_sync-0.20.5 spec/dummy/app/models/user_observer.rb
canvas_sync-0.20.4 spec/dummy/app/models/user_observer.rb
canvas_sync-0.20.3 spec/dummy/app/models/user_observer.rb
canvas_sync-0.19.1.beta2 spec/dummy/app/models/user_observer.rb
canvas_sync-0.19.1.beta1 spec/dummy/app/models/user_observer.rb
canvas_sync-0.19.0 spec/dummy/app/models/user_observer.rb