Sha256: 02e998bf3ed1ba4a55f12eff45519492aa4600be40551d1c9e2d116c7d143f2f

Contents?: true

Size: 441 Bytes

Versions: 195

Compression:

Stored size: 441 Bytes

Contents

class RenameIndexRepositoryErrata < ActiveRecord::Migration[4.2]
  def change
    original_name = 'index_katello_repository_errata_on_erratum_id_and_repository_id'
    shorter_name = 'index_katello_repository_errata_on_erratum_id_and_repo_id'

    if index_exists?(:katello_repository_errata, [:erratum_id, :repository_id], :name => original_name)
      rename_index :katello_repository_errata, original_name, shorter_name
    end
  end
end

Version data entries

195 entries across 195 versions & 1 rubygems

Version Path
katello-4.7.3 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.7.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.7.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.6.2.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.6.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.7.0 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.6.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.7.0.rc2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.7.0.rc1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.4.2.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.4.2.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.4.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.5.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.6.0 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.6.0.rc2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.6.0.rc1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.5.0 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.5.0.rc2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.4.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-4.5.0.rc1 db/migrate/20151219152536_rename_index_repository_errata.rb