From d0032935a1d720c8e3cfd2597667c62a0c4015a1 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 4 May 2016 14:34:11 +0200 Subject: [PATCH] Add runner db field for ability to run untagged jobs --- .../20160504112519_add_run_untagged_to_ci_runner.rb | 11 +++++++++++ db/schema.rb | 1 + 2 files changed, 12 insertions(+) create mode 100644 db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb diff --git a/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb b/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb new file mode 100644 index 00000000000..38fee17f904 --- /dev/null +++ b/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index af4f4c609e7..5b9fbe79fa2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"}