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.15.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.15.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.14.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.14.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.14.0.rc3 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.14.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.14.0.rc1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.14.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.13.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.13.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.12.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.13.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.12.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.12.0.rc3 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.12.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.12.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.11.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.11.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.11.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.11.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb