5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 11:26:23 +00:00
panel/db/migrate/20240229201155_create_activity_pub_remote_flags.rb

17 lines
383 B
Ruby
Raw Permalink Normal View History

2024-03-01 18:04:07 +00:00
# frozen_string_literal: true
# Lleva el registro de reportes remotos
class CreateActivityPubRemoteFlags < ActiveRecord::Migration[6.1]
def change
create_table :activity_pub_remote_flags, id: :uuid do |t|
t.timestamps
t.belongs_to :site
t.uuid :actor_id, index: true
t.text :message
t.index %i[site_id actor_id], unique: true
end
end
end