Sha256: b3fa84d3004cbe8493a8a405644b853127dff3567f2701b7ad3e6592fc37ab31

Contents?: true

Size: 870 Bytes

Versions: 195

Compression:

Stored size: 870 Bytes

Contents

class RemoveJobs < ActiveRecord::Migration[4.2]
  def up
    drop_table :katello_job_tasks
    drop_table :katello_jobs
  end

  def down
    create_table "katello_job_tasks", force: :cascade do |t|
      t.integer "job_id"
      t.integer "task_status_id"
    end

    add_index "katello_job_tasks", ["job_id"], name: "index_job_tasks_on_job_id", using: :btree
    add_index "katello_job_tasks", ["task_status_id"], name: "index_job_tasks_on_task_status_id", using: :btree

    create_table "katello_jobs", force: :cascade do |t|
      t.integer "job_owner_id"
      t.string  "job_owner_type", limit: 255
      t.string  "pulp_id",        limit: 255, null: false
    end

    add_index "katello_jobs", ["job_owner_id"], name: "index_jobs_on_job_owner_id", using: :btree
    add_index "katello_jobs", ["pulp_id"], name: "index_jobs_on_pulp_id", using: :btree
  end
end

Version data entries

195 entries across 195 versions & 1 rubygems

Version Path
katello-3.9.0.rc2 db/migrate/20160605160933_remove_jobs.rb
katello-3.9.0.rc1 db/migrate/20160605160933_remove_jobs.rb
katello-3.7.1.1 db/migrate/20160605160933_remove_jobs.rb
katello-3.7.1 db/migrate/20160605160933_remove_jobs.rb
katello-3.8.0 db/migrate/20160605160933_remove_jobs.rb
katello-3.8.0.rc3 db/migrate/20160605160933_remove_jobs.rb
katello-3.8.0.rc2 db/migrate/20160605160933_remove_jobs.rb
katello-3.7.0 db/migrate/20160605160933_remove_jobs.rb
katello-3.8.0.rc1 db/migrate/20160605160933_remove_jobs.rb
katello-3.7.0.rc2 db/migrate/20160605160933_remove_jobs.rb
katello-3.7.0.rc1 db/migrate/20160605160933_remove_jobs.rb
katello-3.6.0 db/migrate/20160605160933_remove_jobs.rb
katello-3.6.0.1.rc2 db/migrate/20160605160933_remove_jobs.rb
katello-3.6.0.rc2 db/migrate/20160605160933_remove_jobs.rb
katello-3.6.0.rc1 db/migrate/20160605160933_remove_jobs.rb