mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 20:16:21 +00:00
fixup! fix: arreglar las relaciones entre actividades y objetos
This commit is contained in:
parent
5bf26a7fb2
commit
5969662a7d
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
class FixObjectTypeOnActivityPubs < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue