summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-03 17:17:01 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-03 17:17:01 +0200
commitcb49d68c4fe565cc4fdc3a326c45e3ded548cd24 (patch)
tree1b89ce15220ef48bc2f2ad61513c313daac535c5
parent15b10c344b1b909b2a90331926aa4082cd86045b (diff)
downloadgitlab-ce-cb49d68c4fe565cc4fdc3a326c45e3ded548cd24.tar.gz
Use smallint for runner_type since its an enum
-rw-r--r--db/migrate/20180430101916_add_runner_type_to_ci_runners.rb2
-rw-r--r--db/schema.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180430101916_add_runner_type_to_ci_runners.rb b/db/migrate/20180430101916_add_runner_type_to_ci_runners.rb
index 8c8009f28fb..42409349b75 100644
--- a/db/migrate/20180430101916_add_runner_type_to_ci_runners.rb
+++ b/db/migrate/20180430101916_add_runner_type_to_ci_runners.rb
@@ -4,6 +4,6 @@ class AddRunnerTypeToCiRunners < ActiveRecord::Migration
DOWNTIME = false
def change
- add_column :ci_runners, :runner_type, :integer
+ add_column :ci_runners, :runner_type, :smallint
end
end
diff --git a/db/schema.rb b/db/schema.rb
index 177ad0bf23e..a37e6edc8d1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -480,7 +480,7 @@ ActiveRecord::Schema.define(version: 20180503150427) do
t.integer "access_level", default: 0, null: false
t.string "ip_address"
t.integer "maximum_timeout"
- t.integer "runner_type"
+ t.integer "runner_type", limit: 2
end
add_index "ci_runners", ["contacted_at"], name: "index_ci_runners_on_contacted_at", using: :btree