Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-05-08 22:56:37 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-05-11 15:52:47 +0300
commitd922f54548ee64ff8cffb7234f574333d4edd2b7 (patch)
tree655611d1172faf7dc1da90d49b5e88e51414b2e7 /db
parent3eb8435fec3cd7311544a256a3205f31d1dc3a0c (diff)
Remove rails dependent: :destroy statement
Enforced by the database, and no callbacks need to be called. Combined with 7b9b2c6099 and 294a8b8a6d this resolves gitlab-org/gitlab-ce#31799
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170508190732_add_foreign_key_to_ci_variables.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/db/migrate/20170508190732_add_foreign_key_to_ci_variables.rb b/db/migrate/20170508190732_add_foreign_key_to_ci_variables.rb
index 13837324787..20ecaa2c36c 100644
--- a/db/migrate/20170508190732_add_foreign_key_to_ci_variables.rb
+++ b/db/migrate/20170508190732_add_foreign_key_to_ci_variables.rb
@@ -13,7 +13,6 @@ class AddForeignKeyToCiVariables < ActiveRecord::Migration
FROM projects
WHERE projects.id = ci_variables.project_id
)
- OR ci_variables.project_id IS NULL
SQL
add_concurrent_foreign_key(:ci_variables, :projects, column: :project_id)