Commit 86076012 authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Lin Jen-Shin

Add config field to runner to lock it on project

parent 13fd88fa
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
...@@ -285,6 +285,7 @@ ActiveRecord::Schema.define(version: 20160608155312) do ...@@ -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"}
......
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