diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-02-19 16:48:01 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-03-28 13:55:45 +0200 |
commit | fb0dec4e00f1efd637692982ba031f479103cc35 (patch) | |
tree | be007bf81da1397ea3e6fc8be0255ceae4b56964 /db | |
parent | cb94afc561c08db1b2312020e9d0a3e2f5837494 (diff) | |
download | gitlab-ce-fb0dec4e00f1efd637692982ba031f479103cc35.tar.gz |
Add new column to ci_runners table
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180219153455_add_job_upper_timeout_to_ci_runners.rb | 13 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 14 insertions, 0 deletions
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 |