Sha256: 994d4f80e3e073994735bece254922f671d03369d7c207515740485b1db639e5

Contents?: true

Size: 525 Bytes

Versions: 35

Compression:

Stored size: 525 Bytes

Contents

class AddPulpProxyToHost < ActiveRecord::Migration
  def change
    add_column :hosts,      :content_source_id, :integer
    add_column :hostgroups, :content_source_id, :integer

    add_index :hosts,      :content_source_id
    add_index :hostgroups, :content_source_id

    add_foreign_key :hosts,      :smart_proxies, :name => "hosts_content_source_id_fk", :column => "content_source_id"
    add_foreign_key :hostgroups, :smart_proxies, :name => "hostgroups_content_source_id_fk", :column => "content_source_id"
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

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