From 3b0eeccc0324e2d6c024fd94067933314e45b862 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Sat, 7 May 2016 20:23:36 +0200 Subject: [PATCH] Add not null constraint to run untagged runner option --- db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 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 index 38fee17f904..c6753f2b398 100644 --- a/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb +++ b/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb @@ -6,6 +6,6 @@ class AddRunUntaggedToCiRunner < ActiveRecord::Migration # caused by the default value. # def change - add_column :ci_runners, :run_untagged, :boolean, default: true + add_column :ci_runners, :run_untagged, :boolean, default: true, null: false end end diff --git a/db/schema.rb b/db/schema.rb index 5b9fbe79fa2..2e154b98b34 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -269,7 +269,7 @@ ActiveRecord::Schema.define(version: 20160509201028) do t.string "revision" t.string "platform" t.string "architecture" - t.boolean "run_untagged", default: true + t.boolean "run_untagged", default: true, null: false end add_index "ci_runners", ["description"], name: "index_ci_runners_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}