mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:51:36 +08:00
22 lines
509 B
Ruby
22 lines
509 B
Ruby
class CategoryGroup < ActiveRecord::Base
|
|
belongs_to :category
|
|
belongs_to :group
|
|
|
|
def self.permission_types
|
|
@permission_types ||= Enum.new(:full, :create_post, :readonly)
|
|
end
|
|
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: category_groups
|
|
#
|
|
# id :integer not null, primary key
|
|
# category_id :integer not null
|
|
# group_id :integer not null
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
# permission_type :integer default(1)
|
|
#
|