Add config field to runner to lock it on project

This commit is contained in:
Grzegorz Bizon 2016-05-09 11:18:47 +02:00 committed by Lin Jen-Shin
parent 13fd88faa3
commit 8607601208
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
class AddLockedToCiRunner < ActiveRecord::Migration
##
# Downtime expected due to exclusive lock when setting default value.
#
def change
add_column :ci_runners, :locked, :boolean, default: false, null: false
end
end

View File

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