Implement Instance Moderation Notes (#31529)

This commit is contained in:
Emelia Smith 2025-06-25 10:15:44 +02:00 committed by GitHub
commit 72f2f35bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 295 additions and 15 deletions

View file

@ -0,0 +1,15 @@
# frozen_string_literal: true
class CreateInstanceModerationNotes < ActiveRecord::Migration[8.0]
def change
create_table :instance_moderation_notes do |t|
t.string :domain, null: false
t.belongs_to :account, foreign_key: { on_delete: :cascade }, index: false, null: false
t.text :content
t.timestamps
t.index ['domain'], name: 'index_instance_moderation_notes_on_domain'
end
end
end