Skip to content
Snippets Groups Projects
Commit 86076012 authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Lin Jen-Shin
Browse files

Add config field to runner to lock it on project

parent 13fd88fa
No related branches found
No related tags found
2 merge requests!4734!4093 is giving me 502,!4093Make it possible to lock runner on a specific project
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
Loading
@@ -285,6 +285,7 @@ ActiveRecord::Schema.define(version: 20160608155312) do
Loading
@@ -285,6 +285,7 @@ ActiveRecord::Schema.define(version: 20160608155312) do
t.string "platform" t.string "platform"
t.string "architecture" t.string "architecture"
t.boolean "run_untagged", default: true, null: false t.boolean "run_untagged", default: true, null: false
t.boolean "locked", default: false, null: false
end end
   
add_index "ci_runners", ["description"], name: "index_ci_runners_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"} add_index "ci_runners", ["description"], name: "index_ci_runners_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment