mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-11 15:03:15 +00:00
16 lines
428 B
Ruby
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
|