diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-08 21:56:37 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-11 14:52:47 +0200 |
commit | d922f54548ee64ff8cffb7234f574333d4edd2b7 (patch) | |
tree | 655611d1172faf7dc1da90d49b5e88e51414b2e7 /db | |
parent | 3eb8435fec3cd7311544a256a3205f31d1dc3a0c (diff) | |
download | gitlab-ce-d922f54548ee64ff8cffb7234f574333d4edd2b7.tar.gz |
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.rb | 1 |
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) |