Add not null constraint to run untagged runner option

This commit is contained in:
Grzegorz Bizon 2016-05-07 20:23:36 +02:00
parent b8cf2a340b
commit 3b0eeccc03
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"}