Commit cb49d68c authored by Dylan Griffith's avatar Dylan Griffith

Use smallint for runner_type since its an enum

parent 15b10c34
...@@ -4,6 +4,6 @@ class AddRunnerTypeToCiRunners < ActiveRecord::Migration ...@@ -4,6 +4,6 @@ class AddRunnerTypeToCiRunners < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def change def change
add_column :ci_runners, :runner_type, :integer add_column :ci_runners, :runner_type, :smallint
end end
end end
...@@ -480,7 +480,7 @@ ActiveRecord::Schema.define(version: 20180503150427) do ...@@ -480,7 +480,7 @@ ActiveRecord::Schema.define(version: 20180503150427) do
t.integer "access_level", default: 0, null: false t.integer "access_level", default: 0, null: false
t.string "ip_address" t.string "ip_address"
t.integer "maximum_timeout" t.integer "maximum_timeout"
t.integer "runner_type" t.integer "runner_type", limit: 2
end end
add_index "ci_runners", ["contacted_at"], name: "index_ci_runners_on_contacted_at", using: :btree add_index "ci_runners", ["contacted_at"], name: "index_ci_runners_on_contacted_at", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment