5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 18:56:21 +00:00
panel/db/migrate/20240219153919_create_activity_pub_activities.rb

16 lines
434 B
Ruby

# frozen_string_literal: true
# Actividades. Se asocian a un objeto y a una cola de moderación
class CreateActivityPubActivities < ActiveRecord::Migration[6.1]
def change
create_table :activity_pub_activities, id: :uuid do |t|
t.timestamps
t.uuid :activity_pub_id, index: true, null: false
t.string :type, null: false
t.string :uri, null: false
t.jsonb :content, default: {}
end
end
end