mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: destroy CategoryGroup when Category or Group is destroyed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Group < ActiveRecord::Base
|
||||
include HasCustomFields
|
||||
|
||||
has_many :category_groups
|
||||
has_many :category_groups, dependent: :destroy
|
||||
has_many :group_users, dependent: :destroy
|
||||
|
||||
has_many :categories, through: :category_groups
|
||||
|
||||
Reference in New Issue
Block a user