Add targeted_account_notes association to simplify usage (#35540)

This commit is contained in:
Matt Jankowski
2026-01-23 11:35:19 -05:00
committed by GitHub
parent c36db57ace
commit 29ec2cd186
5 changed files with 14 additions and 10 deletions

View File

@@ -23,9 +23,6 @@ module Account::Interactions
# Hashtag follows
has_many :tag_follows, inverse_of: :account, dependent: :destroy
# Account notes
has_many :account_notes, dependent: :destroy
# Block relationships
with_options class_name: 'Block', dependent: :destroy do
has_many :block_relationships, foreign_key: 'account_id', inverse_of: :account