Sha256: f1dbe7f00c1c9c13530cc646c2466d3cb4194852b69a213f69d4ec94e659df0f

Contents?: true

Size: 436 Bytes

Versions: 44

Compression:

Stored size: 436 Bytes

Contents

class RenameIndexRepositoryErrata < ActiveRecord::Migration
  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

44 entries across 44 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.5.1.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.5.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.5.0.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.5.0 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.5.0.rc2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.5.0.rc1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.5 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.4 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.0.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.0.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.3.2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.0 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.0.rc2 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.4.0.rc1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.3.1.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.3.1 db/migrate/20151219152536_rename_index_repository_errata.rb
katello-3.3.0.1 db/migrate/20151219152536_rename_index_repository_errata.rb