diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-06 15:11:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-06 15:11:01 +0300 |
commit | e08e64feb78ad8a490769b2aa59a13166bbdc073 (patch) | |
tree | bfae835c627c6d020237aeec8c7dee31652bbd1d /scripts/decomposition | |
parent | 57257d511c341ce744d152e23a8ca554ef9559e1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/decomposition')
-rwxr-xr-x | scripts/decomposition/generate-loose-foreign-key | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/decomposition/generate-loose-foreign-key b/scripts/decomposition/generate-loose-foreign-key index 66781343411..d52fa2b4f3f 100755 --- a/scripts/decomposition/generate-loose-foreign-key +++ b/scripts/decomposition/generate-loose-foreign-key @@ -167,8 +167,6 @@ def generate_migration(definition) FOREIGN_KEY_NAME = "#{definition.name}" def up - return unless foreign_key_exists?(:#{definition.from_table}, :#{definition.to_table}, name: FOREIGN_KEY_NAME) - with_lock_retries do remove_foreign_key_if_exists(:#{definition.from_table}, :#{definition.to_table}, name: FOREIGN_KEY_NAME, reverse_lock_order: true) |