Add inverse relationship for mute rules <-> users

This commit is contained in:
Karina Kwiatek 2021-12-22 19:30:55 +01:00
parent f85769eb55
commit 18de468198
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class User < ApplicationRecord
has_many :moderation_votes, dependent: :destroy
has_many :lists, dependent: :destroy
has_many :list_memberships, class_name: "ListMember", foreign_key: 'user_id', dependent: :destroy
has_many :mute_rules, dependent: :destroy
has_many :subscriptions, dependent: :destroy
has_many :totp_recovery_codes, dependent: :destroy