summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-09 13:11:41 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-09 13:11:41 +0200
commite5df8b58903bfe86c528aaf3d2a3a5ac7b00302d (patch)
treee1551d5ebe8f02a85a39ab46e9ed813217b2eb1c /db
parent3d93ad103b32b71d4af330c17227c23a2a167bae (diff)
downloadgitlab-ce-e5df8b58903bfe86c528aaf3d2a3a5ac7b00302d.tar.gz
Add missing pipeline build foreign key to the schema
Diffstat (limited to 'db')
-rw-r--r--db/schema.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 6fd10785d77..22a851f83a6 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -2148,6 +2148,7 @@ ActiveRecord::Schema.define(version: 20180508055821) do
add_foreign_key "ci_build_trace_sections", "ci_builds", column: "build_id", name: "fk_4ebe41f502", on_delete: :cascade
add_foreign_key "ci_build_trace_sections", "projects", on_delete: :cascade
add_foreign_key "ci_builds", "ci_pipelines", column: "auto_canceled_by_id", name: "fk_a2141b1522", on_delete: :nullify
+ add_foreign_key "ci_builds", "ci_pipelines", column: "commit_id", name: "fk_d3130c9a7f", on_delete: :cascade
add_foreign_key "ci_builds", "ci_stages", column: "stage_id", name: "fk_3a9eaa254d", on_delete: :cascade
add_foreign_key "ci_builds", "projects", name: "fk_befce0568a", on_delete: :cascade
add_foreign_key "ci_builds_metadata", "ci_builds", column: "build_id", on_delete: :cascade