5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 20:26:21 +00:00

fixup! fix: arreglar las relaciones entre actividades y objetos

This commit is contained in:
f 2024-03-14 15:42:44 -03:00
parent 5bf26a7fb2
commit 5969662a7d
No known key found for this signature in database

View file

@ -4,7 +4,7 @@
class FixObjectTypeOnActivityPubs < ActiveRecord::Migration[6.1] class FixObjectTypeOnActivityPubs < ActiveRecord::Migration[6.1]
def up def up
ActivityPub::Object.where.not(type: 'ActivityPub::Object::Generic').find_each do |object| ActivityPub::Object.where.not(type: 'ActivityPub::Object::Generic').find_each do |object|
ActivityPub.where(object_id: object.id).update_all(type: object.type, updated_at: Time.now) ActivityPub.where(object_id: object.id).update_all(object_type: object.type, updated_at: Time.now)
end end
end end