Sha256: 83468229804f43574c0b2921f33026d4b8465644aeb103e10002304ebd17a83a

Contents?: true

Size: 279 Bytes

Versions: 9

Compression:

Stored size: 279 Bytes

Contents

class AddMissingPermissions < ActiveRecord::Migration[6.0]
  def up
    Permission.where(name: 'auth_smart_proxies_salt_autosign', resource_type: 'SmartProxy').first_or_create
  end

  def down
    Permission.where(name: 'auth_smart_proxies_salt_autosign').destroy_all
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_salt-17.0.0 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-16.0.3 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-16.0.2 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-16.0.1 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-16.0.0 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-15.2.3 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-15.2.2 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-15.2.1 db/migrate/20211108211312_add_missing_permissions.rb
foreman_salt-15.2.0 db/migrate/20211108211312_add_missing_permissions.rb