Sha256: bf244be91635600858902ed15bd4bb6134ab2c99f3f74418520bd715d1cb7848
Contents?: true
Size: 527 Bytes
Versions: 64
Compression:
Stored size: 527 Bytes
Contents
module CoalescingPanda class GroupCategory < ActiveRecord::Base belongs_to :context, :polymorphic => true include SingleTablePolymorphic belongs_to :leader, foreign_key: :leader_id, class_name: 'CoalescingPanda::User' has_many :groups, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Group' has_many :assignments, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Assignment' validates :canvas_group_category_id, presence: true end end
Version data entries
64 entries across 64 versions & 1 rubygems