From cb49d68c4fe565cc4fdc3a326c45e3ded548cd24 Mon Sep 17 00:00:00 2001 From: Dylan Griffith Date: Thu, 3 May 2018 17:17:01 +0200 Subject: [PATCH] Use smallint for runner_type since its an enum --- db/migrate/20180430101916_add_runner_type_to_ci_runners.rb | 2 +- db/schema.rb | 2 +- 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