Sha256: cf9ef95e9d427afff5cf936e93c6ac5ba6b33ab48f9a620dedb0ba51624708cd

Contents?: true

Size: 307 Bytes

Versions: 77

Compression:

Stored size: 307 Bytes

Contents

class ChangeGpgKeysToContentCredentials < ActiveRecord::Migration[6.0]
  def change
    rename_table :katello_gpg_keys, :katello_content_credentials

    permissions = Permission.where(:resource_type => 'Katello::GpgKey')
    permissions.update_all(:resource_type => 'Katello::ContentCredential')
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
katello-4.7.1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.6.2.1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.6.2 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.7.0 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.6.1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.7.0.rc2 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.7.0.rc1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.4.2.2 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.4.2.1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.4.2 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.5.1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.6.0 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.6.0.rc2 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.6.0.rc1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.5.0 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.5.0.rc2 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.4.1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.5.0.rc1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.4.0.2 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb
katello-4.4.0.1 db/migrate/20210721163730_change_gpg_keys_to_content_credentials.rb