Sha256: b9971bd7806ac4b1624c245a0910089b5301808ce31ee27648da143231100cc1

Contents?: true

Size: 327 Bytes

Versions: 4

Compression:

Stored size: 327 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 db/migrate/20240326143045_remove_old_rex_permissions.rb
foreman_acd-0.10.0 db/migrate/20240326143045_remove_old_rex_permissions.rb
foreman_acd-0.9.7 db/migrate/20240326143045_remove_old_rex_permissions.rb
foreman_acd-0.9.5 db/migrate/20240326143045_remove_old_rex_permissions.rb