Sha256: 683e4c0a3da2da12da43f546d948f296900096bd98bd01d54610ce95cd51e57e

Contents?: true

Size: 760 Bytes

Versions: 164

Compression:

Stored size: 760 Bytes

Contents

class RemoveForemanDockerSupport < ActiveRecord::Migration[5.1]
  def change
    if table_exists?(:docker_images)
      remove_column :docker_images, :katello_uuid
      remove_column :docker_images, :katello_repository_id
    end
    if table_exists?(:docker_tags)
      remove_index :docker_tags, :name => :katello_docker_tag_repository_id
      remove_column :docker_tags, :katello_repository_id
    end
    if table_exists?(:docker_container_wizard_states_images) && column_exists?(:docker_container_wizard_states_images, :capsule_id)
      remove_column :docker_container_wizard_states_images, :capsule_id
    end
    if table_exists?(:containers) && column_exists?(:containers, :capsule_id)
      remove_column :containers, :capsule_id
    end
  end
end

Version data entries

164 entries across 164 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.15.0.rc1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.14.1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.14.0 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.14.0.rc3 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.14.0.rc2 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.14.0.rc1.1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.14.0.rc1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.13.1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.13.0 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.12.1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.13.0.rc1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.12.0 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.12.0.rc3 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.12.0.rc2 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.12.0.rc1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.11.1 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.11.0 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.11.0.rc2 db/migrate/20180823081502_remove_foreman_docker_support.rb
katello-4.11.0.rc1 db/migrate/20180823081502_remove_foreman_docker_support.rb