summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
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