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.7.1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.7.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.8.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.8.0.rc3 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.8.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.7.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.8.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.7.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.7.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.6.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.6.0.1.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.6.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.6.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb