Sha256: d00f8278c8c20523b3413e2be6aacea67ff83d72542a0fbf44f92609b6d70c56

Contents?: true

Size: 531 Bytes

Versions: 19

Compression:

Stored size: 531 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

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.0.2 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.5 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.1 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.4 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.0 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.3 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.0.rc7 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.0.rc5 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.2 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.0.rc4 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.0.rc3 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.0.rc2 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-3.0.0.rc1 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.1 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.0 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.0.rc3 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.0.rc2 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.4.0.rc1 db/migrate/20140610083129_add_pulp_proxy_to_host.rb
katello-2.2.2 db/migrate/20140610083129_add_pulp_proxy_to_host.rb