Sha256: 618520407884d0255f731b10c5954e9fcdf0def1c925dc80eba1a8678557096b

Contents?: true

Size: 450 Bytes

Versions: 54

Compression:

Stored size: 450 Bytes

Contents

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

54 entries across 54 versions & 1 rubygems

Version Path
katello-2.4.3 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.0.0.rc7 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.0.0.rc5 db/migrate/20140425155126_add_host_id_to_system.rb
katello-2.4.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.0.0.rc4 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.0.0.rc3 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.0.0.rc2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.0.0.rc1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-2.4.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-2.4.0 db/migrate/20140425155126_add_host_id_to_system.rb
katello-2.4.0.rc3 db/migrate/20140425155126_add_host_id_to_system.rb
katello-2.4.0.rc2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-2.4.0.rc1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-2.2.2 db/migrate/20140425155126_add_host_id_to_system.rb