diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-03-17 19:14:27 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-05-08 11:24:55 -0300 |
commit | 4ae411ff40352ec21bd10f859b7f3f9f85a7aee6 (patch) | |
tree | c7f38b9bc9a9fb826cf88de15fb61054f5354cab /db | |
parent | 11ff9fc6a9837cd5defa0325b5057a5a3d84634c (diff) | |
download | gitlab-ce-4ae411ff40352ec21bd10f859b7f3f9f85a7aee6.tar.gz |
Preloads head pipeline for each merge request
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170427205316_add_head_pipeline_id_to_merge_requests.rb | 7 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20170427205316_add_head_pipeline_id_to_merge_requests.rb b/db/migrate/20170427205316_add_head_pipeline_id_to_merge_requests.rb new file mode 100644 index 00000000000..8fc6e380a77 --- /dev/null +++ b/db/migrate/20170427205316_add_head_pipeline_id_to_merge_requests.rb @@ -0,0 +1,7 @@ +class AddHeadPipelineIdToMergeRequests < ActiveRecord::Migration + DOWNTIME = false + + def change + add_column :merge_requests, :head_pipeline_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 722e776c27d..d5b1d3bb0d8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -123,6 +123,7 @@ ActiveRecord::Schema.define(version: 20170506185517) do t.integer "cached_markdown_version" t.boolean "clientside_sentry_enabled", default: false, null: false t.string "clientside_sentry_dsn" + t.string "default_artifacts_expire_in", default: "0", null: false end create_table "audit_events", force: :cascade do |t| @@ -690,6 +691,7 @@ ActiveRecord::Schema.define(version: 20170506185517) do t.integer "cached_markdown_version" t.datetime "last_edited_at" t.integer "last_edited_by_id" + t.integer "head_pipeline_id" end add_index "merge_requests", ["assignee_id"], name: "index_merge_requests_on_assignee_id", using: :btree |