mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 09:36:21 +00:00
13 lines
357 B
Ruby
13 lines
357 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(actor_id: actor_ids).remove_all!
|
|
end
|
|
|
|
def down; end
|
|
end
|