FIX: Ensure category_required_tag_groups are destroyed with tag_groups (#16433)

This commit is contained in:
David Taylor 2022-04-11 13:28:06 +01:00 committed by GitHub
parent 09c4a16b46
commit 7b1686ad7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ class TagGroup < ActiveRecord::Base
has_many :tag_group_memberships, dependent: :destroy
has_many :tags, through: :tag_group_memberships
has_many :category_tag_groups, dependent: :destroy
has_many :category_required_tag_groups, dependent: :destroy
has_many :categories, through: :category_tag_groups
has_many :tag_group_permissions, dependent: :destroy