Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

378 B
Raw Blame
# frozen_string_literal: true

namespace :permissions do
  desc 'Remove stored role permissions whose action the code no longer knows (a data backfill)'
  task prune_unknown_actions: :environment do
    removed = ActsAsTenant.without_tenant { Permission.unknown_actions.delete_all }
    puts "permissions:prune_unknown_actions: #{removed} stored permissions removed."
  end
end