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-3.5.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.5.1.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.5.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.5.0.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.5.0 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.5.0.rc2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.5.0.rc1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.5 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.4 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.0.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.0.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.3.2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.0 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.0.rc2 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.4.0.rc1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.3.1.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.3.1 db/migrate/20140425155126_add_host_id_to_system.rb
katello-3.3.0.1 db/migrate/20140425155126_add_host_id_to_system.rb