Sha256: 8084c69d17c827411f819729aca106ee85c470117ea672af9a6f7109f8191649
Contents?: true
Size: 600 Bytes
Versions: 68
Compression:
Stored size: 600 Bytes
Contents
module CoalescingPanda class Group < ActiveRecord::Base belongs_to :context, :polymorphic => true include SingleTablePolymorphic belongs_to :leader, foreign_key: :leader_id, class_name: 'CoalescingPanda::User' belongs_to :group_category, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::GroupCategory' has_many :group_memberships, foreign_key: :coalescing_panda_group_id, class_name: 'CoalescingPanda::GroupMembership', dependent: :destroy validates :group_category_id, presence: true validates :canvas_group_id, presence: true end end
Version data entries
68 entries across 68 versions & 1 rubygems