summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2017-08-30 20:39:23 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2017-08-31 22:25:26 +0200
commit770bcf71bb85c9eff13f4eb14cbd517986da9056 (patch)
tree05c0ea7b0463485a025f063da660379c5d34330f /db
parent6ed490401f49a8941dc7a9e3757ec4012f14ef0b (diff)
downloadgitlab-ce-770bcf71bb85c9eff13f4eb14cbd517986da9056.tar.gz
Form for setting project auto devops settings
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170828093725_create_project_auto_dev_ops.rb2
-rw-r--r--db/schema.rb5
2 files changed, 3 insertions, 4 deletions
diff --git a/db/migrate/20170828093725_create_project_auto_dev_ops.rb b/db/migrate/20170828093725_create_project_auto_dev_ops.rb
index 818fc8ed970..a96ad644a2e 100644
--- a/db/migrate/20170828093725_create_project_auto_dev_ops.rb
+++ b/db/migrate/20170828093725_create_project_auto_dev_ops.rb
@@ -8,7 +8,7 @@ class CreateProjectAutoDevOps < ActiveRecord::Migration
def up
create_table :project_auto_devops do |t|
t.belongs_to :project, index: true
- t.boolean :enabled, default: true
+ t.boolean :enabled, default: nil, null: true
t.string :domain
end
diff --git a/db/schema.rb b/db/schema.rb
index 66ab6988649..1bc2a5eddc5 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -250,7 +250,6 @@ ActiveRecord::Schema.define(version: 20170828093725) do
add_index "ci_builds", ["commit_id", "status", "type"], name: "index_ci_builds_on_commit_id_and_status_and_type", using: :btree
add_index "ci_builds", ["commit_id", "type", "name", "ref"], name: "index_ci_builds_on_commit_id_and_type_and_name_and_ref", using: :btree
add_index "ci_builds", ["commit_id", "type", "ref"], name: "index_ci_builds_on_commit_id_and_type_and_ref", using: :btree
- add_index "ci_builds", ["id"], name: "index_for_ci_builds_retried_migration", where: "(retried IS NULL)", using: :btree, opclasses: {"id)"=>"WHERE"}
add_index "ci_builds", ["project_id"], name: "index_ci_builds_on_project_id", using: :btree
add_index "ci_builds", ["runner_id"], name: "index_ci_builds_on_runner_id", using: :btree
add_index "ci_builds", ["stage_id"], name: "index_ci_builds_on_stage_id", using: :btree
@@ -1122,8 +1121,8 @@ ActiveRecord::Schema.define(version: 20170828093725) do
t.integer "project_id"
t.boolean "enabled", default: true
t.string "domain"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
+ t.datetime_with_timezone "created_at", null: false
+ t.datetime_with_timezone "updated_at", null: false
end
add_index "project_auto_devops", ["project_id"], name: "index_project_auto_devops_on_project_id", using: :btree