You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/db/migrate/20250328153843_create_insta...

16 lines
428 B
Ruby

# 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