discourse/app/models/category_moderation_group.rb
Osama Sayegh 280adda09c
FEATURE: Support designating multiple groups as mods on category (#28655)
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.
2024-09-04 04:38:46 +03:00

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
#