Sha256: 136a63e98ce6854b4add0b991f76a07ca48571ed9c7a43e5ff1814afe874629d

Contents?: true

Size: 252 Bytes

Versions: 19

Compression:

Stored size: 252 Bytes

Contents

class RemoveSystemPermissions < ActiveRecord::Migration
  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

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.5.1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.5.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.5.0.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.5.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.5.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.5.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.5 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.4 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.0.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.0.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.3.2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.0 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.0.rc2 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.4.0.rc1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.3.1.1 db/migrate/20170220679403_remove_system_permissions.rb
katello-3.3.1 db/migrate/20170220679403_remove_system_permissions.rb