From fb0dec4e00f1efd637692982ba031f479103cc35 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Mon, 19 Feb 2018 16:48:01 +0100 Subject: Add new column to ci_runners table --- .../20180219153455_add_job_upper_timeout_to_ci_runners.rb | 13 +++++++++++++ db/schema.rb | 1 + 2 files changed, 14 insertions(+) create mode 100644 db/migrate/20180219153455_add_job_upper_timeout_to_ci_runners.rb (limited to 'db') diff --git a/db/migrate/20180219153455_add_job_upper_timeout_to_ci_runners.rb b/db/migrate/20180219153455_add_job_upper_timeout_to_ci_runners.rb new file mode 100644 index 00000000000..418ec7ac1d9 --- /dev/null +++ b/db/migrate/20180219153455_add_job_upper_timeout_to_ci_runners.rb @@ -0,0 +1,13 @@ +class AddJobUpperTimeoutToCiRunners < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + add_column :ci_runners, :job_upper_timeout, :integer + end + + def down + remove_column :ci_runners, :job_upper_timeout + end +end diff --git a/db/schema.rb b/db/schema.rb index 3bf42080870..413f42df40b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -459,6 +459,7 @@ ActiveRecord::Schema.define(version: 20180327101207) do t.boolean "locked", default: false, null: false t.integer "access_level", default: 0, null: false t.string "ip_address" + t.integer "job_upper_timeout" end add_index "ci_runners", ["contacted_at"], name: "index_ci_runners_on_contacted_at", using: :btree -- cgit v1.2.1