Commit 23ac401b authored by Shinya Maeda's avatar Shinya Maeda

Allow null for protected attribute in ci_pipelines

parent 0968e6ad
......@@ -6,7 +6,7 @@ class AddProtectedToCiPipelines < ActiveRecord::Migration
disable_ddl_transaction!
def up
add_column_with_default(:ci_pipelines, :protected, :boolean, default: false)
add_column(:ci_pipelines, :protected, :boolean)
end
def down
......
......@@ -336,7 +336,7 @@ ActiveRecord::Schema.define(version: 20170824162758) do
t.integer "auto_canceled_by_id"
t.integer "pipeline_schedule_id"
t.integer "source"
t.boolean "protected", default: false, null: false
t.boolean "protected"
end
add_index "ci_pipelines", ["auto_canceled_by_id"], name: "index_ci_pipelines_on_auto_canceled_by_id", using: :btree
......
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