Sha256: be7263df9b992959293bb10b53c5fc5177a9c6e90105e164b1e2bfdd0a945a00
Contents?: true
Size: 554 Bytes
Versions: 150
Compression:
Stored size: 554 Bytes
Contents
class RenameRepositoryFileUnit < ActiveRecord::Migration[5.2] def change original_name = 'index_katello_repository_files_on_file_id_and_repository_id' shorter_name = 'index_katello_repo_files_file_and_repo' if index_exists?(:katello_repository_files, [:file_id, :repository_id], :name => original_name) rename_index :katello_repository_files, original_name, shorter_name end rename_column :katello_repository_files, :file_id, :file_unit_id rename_table :katello_repository_files, :katello_repository_file_units end end
Version data entries
150 entries across 150 versions & 1 rubygems