Add runner db field for ability to run untagged jobs

This commit is contained in:
Grzegorz Bizon 2016-05-04 14:34:11 +02:00
parent e4a1af8353
commit d0032935a1
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
class AddRunUntaggedToCiRunner < ActiveRecord::Migration
##
# Downtime expected!
#
# This migration will cause downtime due to exclusive lock
# caused by the default value.
#
def change
add_column :ci_runners, :run_untagged, :boolean, default: true
end
end

View File

@ -269,6 +269,7 @@ ActiveRecord::Schema.define(version: 20160509201028) do
t.string "revision"
t.string "platform"
t.string "architecture"
t.boolean "run_untagged", default: true
end
add_index "ci_runners", ["description"], name: "index_ci_runners_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}