mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 21:04:29 +08:00
280adda09c
Currently, categories support designating only 1 group as a moderation group on the category. This commit removes the one group limitation and makes it possible to designate multiple groups as mods on a category. Internal topic: t/124648.
22 lines
497 B
Ruby
22 lines
497 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CategoryModerationGroup < ActiveRecord::Base
|
|
belongs_to :category
|
|
belongs_to :group
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: category_moderation_groups
|
|
#
|
|
# id :bigint not null, primary key
|
|
# category_id :integer
|
|
# group_id :integer
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_category_moderation_groups_on_category_id_and_group_id (category_id,group_id) UNIQUE
|
|
#
|