Sha256: fa2dbf7e4f1698f36c81e07806cacc937caccff2f1335f189b2840c7578cb3cf

Contents?: true

Size: 729 Bytes

Versions: 103

Compression:

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

  validates :canvas_id, uniqueness: true, presence: true
  belongs_to :group, primary_key: :canvas_id, foreign_key: :canvas_group_id
  belongs_to :user, primary_key: :canvas_id, foreign_key: :canvas_user_id

  api_syncable({
    canvas_id: :id,
    canvas_group_id: :group_id,
    canvas_user_id: :user_id,
    workflow_state: :workflow_state,
  }, -> (api) { api.group_membership(canvas_group_id, canvas_id) })
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
canvas_sync-0.17.10.beta1 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.8 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.8.beta4 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.8.beta3 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.8.beta2 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.8.beta1 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.7 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.7.beta1 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.6 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.6.beta1 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.5 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.5.beta2 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.5.beta1 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.4 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.3.beta3 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.3.beta2 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.3.beta1 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.2 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.1 spec/dummy/app/models/group_membership.rb
canvas_sync-0.17.0 spec/dummy/app/models/group_membership.rb