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