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