Skip to content

Commit

Permalink
Fixes #37567 - Remove OVAL related permissions from DB
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Jun 17, 2024
1 parent a4230aa commit 31e8e45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions db/migrate/20240617105409_remove_oval_permissions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RemoveOvalPermissions < ActiveRecord::Migration[6.1]
def up
Permission.where(resource_type: 'ForemanOpenscap::OvalPolicy').destroy_all
Permission.where(resource_type: 'ForemanOpenscap::OvalContent').destroy_all
Permission.where(resource_type: 'ForemanOpenscap::Cve').destroy_all
end
end

0 comments on commit 31e8e45

Please sign in to comment.