Sha256: bc4859c4c50db88fae41a27650e7bb61cc62b7e30f3afd70f89a2b54a2a53b9c

Contents?: true

Size: 390 Bytes

Versions: 27

Compression:

Stored size: 390 Bytes

Contents

class AddHostToReport < ActiveRecord::Migration[5.2]
  def up
    add_column :preupgrade_report_entries, :host_id, :integer
    change_column :preupgrade_report_entries, :host_id, :integer, null: false
    add_index :preupgrade_report_entries, :host_id
  end

  def down
    remove_index :preupgrade_report_entries, :host_id
    remove_column :preupgrade_report_entries, :host_id
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foreman_leapp-2.0.1 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-2.0.0 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-1.2.1 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-1.2.0 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.15 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-1.1.1 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-1.1.0 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-1.0.0 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.14 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.13 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.12 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.11 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.10 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.9 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.8 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.7 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.6 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.5 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.4 db/migrate/20200327091009_add_host_to_report.rb
foreman_leapp-0.1.3 db/migrate/20200327091009_add_host_to_report.rb