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-4.3.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.4.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.4.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.4.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.2.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.3.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.3.0.rc4 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.3.0.rc3 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.3.0.rc2.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.3.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.3.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.2.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.2.0.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.4 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.3 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.2.0.1.rc3 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.18.5 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.2.0.1.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.2.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.3 db/migrate/20170220679403_remove_system_permissions.rb