Implement Instance Moderation Notes (#31529)
This commit is contained in:
parent
0f9f27972d
commit
72f2f35bfb
20 changed files with 295 additions and 15 deletions
|
|
@ -21,6 +21,7 @@ class Instance < ApplicationRecord
|
|||
belongs_to :unavailable_domain
|
||||
|
||||
has_many :accounts, dependent: nil
|
||||
has_many :moderation_notes, class_name: 'InstanceModerationNote', dependent: :destroy
|
||||
end
|
||||
|
||||
scope :searchable, -> { where.not(domain: DomainBlock.select(:domain)) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue