Use smallint for runner_type since its an enum

This commit is contained in:
Dylan Griffith 2018-05-03 17:17:01 +02:00
parent 15b10c344b
commit cb49d68c4f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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