From 290a5451a190b5e933c9374ba14c0d5d1254dd32 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Tue, 26 Mar 2024 14:49:10 +0100 Subject: [PATCH] Cleanup permissions renamed in e12a7c25 --- .../20240326143045_remove_old_rex_permissions.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrate/20240326143045_remove_old_rex_permissions.rb diff --git a/db/migrate/20240326143045_remove_old_rex_permissions.rb b/db/migrate/20240326143045_remove_old_rex_permissions.rb new file mode 100644 index 00000000..07abe163 --- /dev/null +++ b/db/migrate/20240326143045_remove_old_rex_permissions.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +# Remove old permissons to run the remote execution jobs +class RemoveOldRexPermissions < ActiveRecord::Migration[6.0] + def up + Permission.where(:name => %w(new_remote_execution create_remote_execution)).destroy_all + end + + def down + # The permission will get recreated by seeds + end +end