Sha256: 2c46eca161a8ac574f7ab1446cce55890ce44575d79a3d1b1ce65e6354e895c2
Contents?: true
Size: 872 Bytes
Versions: 31
Compression:
Stored size: 872 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 Group < ApplicationRecord include CanvasSync::Record include CanvasSync::Concerns::ApiSyncable canvas_sync_features :defaults validates :canvas_id, uniqueness: true, presence: true belongs_to :course, primary_key: :canvas_id, foreign_key: :canvas_course_id, optional: true belongs_to :account, primary_key: :canvas_id, foreign_key: :canvas_account_id, optional: true has_many :group_memberships, primary_key: :canvas_id, foreign_key: :canvas_group_id api_syncable({ canvas_id: :id, name: :name, canvas_course_id: :course_id, sis_id: :sis_group_id, workflow_state: ->(r){ 'available' }, }, -> (api) { api.group(canvas_id) }) end
Version data entries
31 entries across 31 versions & 1 rubygems