5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-21 22:36:22 +00:00
panel/db/migrate/20240229201155_create_activity_pub_remote_flags.rb
2024-03-01 15:04:07 -03:00

16 lines
383 B
Ruby

# 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