Sha256: cd3f259ceb94d52233c69fc8798e7c4afdb20beacae7760eb1acd8f4885ebcfc

Contents?: true

Size: 257 Bytes

Versions: 193

Compression:

Stored size: 257 Bytes

Contents

class RemoveSystemPermissions < ActiveRecord::Migration[4.2]
  def up
    system_permissions = Permission.where(:resource_type => 'Katello::System')
    system_permissions.flat_map(&:filters).map(&:destroy!)
    system_permissions.map(&:destroy!)
  end
end

Version data entries

193 entries across 193 versions & 1 rubygems

Version Path
katello-3.12.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.11.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.10.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.12.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.12.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.10.1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.12.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.10.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.11.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.11.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.11.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.11.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.10.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.10.0.rc1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.9.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.10.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.9.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.8.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.9.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.9.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb