summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-01 17:38:47 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-03 23:49:10 +0900
commit23ac401b6e9883d2bd6beaef30e686d67ece791e (patch)
tree6e3ba6098529a6f8e5943596430e168b3b3e9e86 /db
parent0968e6ad4240eae8016340a550b4d871d823a903 (diff)
downloadgitlab-ce-23ac401b6e9883d2bd6beaef30e686d67ece791e.tar.gz
Allow null for protected attribute in ci_pipelines
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170731132235_add_protected_to_ci_pipelines.rb2
-rw-r--r--db/schema.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20170731132235_add_protected_to_ci_pipelines.rb b/db/migrate/20170731132235_add_protected_to_ci_pipelines.rb
index bc034f99609..d2d2b6733f6 100644
--- a/db/migrate/20170731132235_add_protected_to_ci_pipelines.rb
+++ b/db/migrate/20170731132235_add_protected_to_ci_pipelines.rb
@@ -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
diff --git a/db/schema.rb b/db/schema.rb
index df5755ff888..85cb4e99b10 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -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