Sha256: 7dddea3eab5c2f3cf9e3ffe0ab4573c596f01c6505d5c89391c20e44ff46714c

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

module CoalescingPanda
  class Group < ActiveRecord::Base
    belongs_to :context, :polymorphic => true
    include SingleTablePolymorphic

    has_many :group_memberships, dependent: :destroy, foreign_key: :coalescing_panda_group_id, class_name: 'CoalescingPanda::GroupMembership'
    validates :group_category_id, presence: true
    validates :canvas_group_id, presence: true
    validates :coalescing_panda_user_id, presence: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coalescing_panda-3.2.3 app/models/coalescing_panda/group.rb
coalescing_panda-3.2.2 app/models/coalescing_panda/group.rb
coalescing_panda-3.2.1 app/models/coalescing_panda/group.rb
coalescing_panda-3.2.0 app/models/coalescing_panda/group.rb
coalescing_panda-3.1.14 app/models/coalescing_panda/group.rb