summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb11
-rw-r--r--db/schema.rb1
2 files changed, 12 insertions, 0 deletions
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"}