mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-28 14:56:21 +00:00
17 lines
466 B
Ruby
17 lines
466 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Almacena objetos de ActivityPub. Los objetos pueden estar compartidos
|
|
# por toda la instancia.
|
|
class CreateActivityPubObjects < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :activity_pub_objects, id: :uuid do |t|
|
|
t.timestamps
|
|
|
|
t.uuid :actor_id, index: true, null: false
|
|
|
|
t.string :type, null: false
|
|
t.string :uri, null: false, unique: true
|
|
t.jsonb :content, default: {}
|
|
end
|
|
end
|
|
end
|