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

Version Path
katello-4.10.0 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.9.2 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.10.0.rc2 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.10.0.rc1 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.8.4 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.9.1 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.8.3 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.9.0 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.7.6 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.8.2 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.9.0.rc2 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.9.0.rc1 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.8.1 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.7.5 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.8.0 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.8.0.rc2 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.7.4 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.8.0.rc1 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.7.3 db/migrate/20190912210927_rename_repository_file_unit.rb
katello-4.7.2 db/migrate/20190912210927_rename_repository_file_unit.rb