mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 09:46:22 +00:00
14 lines
351 B
Ruby
14 lines
351 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Mover todes les actores eliminades
|
||
|
class RemoveActorModerations < ActiveRecord::Migration[6.1]
|
||
|
def up
|
||
|
actor_ids =
|
||
|
ActivityPub.where(aasm_state: 'removed', object_type: 'ActivityPub::Object::Person').distinct.pluck(:actor_id)
|
||
|
|
||
|
ActorModeration.where(id: actor_ids).remove_all!
|
||
|
end
|
||
|
|
||
|
def down; end
|
||
|
end
|