diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 03:13:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 03:13:32 +0300 |
commit | d150848f7ed150d4f1887a4bff7cc4c423c55186 (patch) | |
tree | c43ccbe2e72615f7a60e647a4ce3ef2fa11dd35e /lib/gitlab/database.rb | |
parent | ed28831dfe5fd267a9506cb6642e50fbcb581a7f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/database.rb')
-rw-r--r-- | lib/gitlab/database.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index c83436f24b4..9c74e5d2ca8 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -168,18 +168,6 @@ module Gitlab yield end - # This method will allow cross database modifications within the block - # Example: - # - # allow_cross_database_modification_within_transaction(url: 'url-to-an-issue') do - # create(:build) # inserts ci_build and project record in one transaction - # end - def self.allow_cross_database_modification_within_transaction(url:) - # this method will be overridden in: - # spec/support/database/cross_database_modification_check.rb - yield - end - def self.add_post_migrate_path_to_rails(force: false) return if ENV['SKIP_POST_DEPLOYMENT_MIGRATIONS'] && !force |