Sha256: 3738263e5ba84fcf6d28724b0b5bb77c39a4bb4c63fedd7f7a4be880dce2d7d9

Contents?: true

Size: 455 Bytes

Versions: 195

Compression:

Stored size: 455 Bytes

Contents

class AddHostIdToSystem < ActiveRecord::Migration[4.2]
  def up
    add_column :katello_systems, :host_id, :integer
    add_index :katello_systems, :host_id
    add_foreign_key 'katello_systems', 'hosts', :name => 'katello_systems_host_id', :column => 'host_id'
  end

  def down
    remove_foreign_key 'katello_systems', :name => :katello_systems_host_id
    remove_index :katello_systems, :host_id
    remove_column :katello_systems, :host_id
  end
end

Version data entries

195 entries across 195 versions & 1 rubygems

Version Path
katello-4.2.0.rc2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.3 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.2.0.rc1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.0.2.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.2.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.0.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.18.4 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.0 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.0.1.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.18.3.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.0.rc2.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.0.rc2.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.0.1.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.18.3 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.0.rc2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.0.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.0.rc1.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-4.1.0.rc1 db/migrate/20140425155126_add_host_id_to_system.rb