Sha256: 501a19e9750ee68d6ee196d928efbf117396851d6c3ebc7dd2d16839705ebb75
Contents?: true
Size: 763 Bytes
Versions: 31
Compression:
Stored size: 763 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 canvas_sync_features :defaults 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
31 entries across 31 versions & 1 rubygems