summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180219153455_add_job_upper_timeout_to_ci_runners.rb13
-rw-r--r--db/schema.rb1
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