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.2.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.2.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.2.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.18.4 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.1.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.18.3.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.0.rc2.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.0.rc2.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.18.3 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.0.rc1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.1.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-4.0.0.rc3.1 db/migrate/20170220679403_remove_system_permissions.rb