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