diff options
author | Robert Speicher <robert@gitlab.com> | 2018-08-17 17:10:12 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-08-17 17:10:12 +0000 |
commit | 120ce02e5e7e72654cb42edddc25ff3b057ec136 (patch) | |
tree | dc612e487ea3d84cc7848ff5cb74660a3d79bf5a /db | |
parent | a58d0a0182d06efbbde57821e71c305518325d6f (diff) | |
parent | 9606dbbb033567de9831a8cdea0e56236e7d2eb2 (diff) | |
download | gitlab-ce-120ce02e5e7e72654cb42edddc25ff3b057ec136.tar.gz |
Merge branch 'blacklist-destroy-all' into 'master'
Blacklist the use of destroy_all
See merge request gitlab-org/gitlab-ce!21250
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160712171823_remove_award_emojis_with_no_user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160712171823_remove_award_emojis_with_no_user.rb b/db/migrate/20160712171823_remove_award_emojis_with_no_user.rb index 668c22bb51c..8ebf1a5234d 100644 --- a/db/migrate/20160712171823_remove_award_emojis_with_no_user.rb +++ b/db/migrate/20160712171823_remove_award_emojis_with_no_user.rb @@ -16,6 +16,6 @@ class RemoveAwardEmojisWithNoUser < ActiveRecord::Migration # disable_ddl_transaction! def up - AwardEmoji.joins('LEFT JOIN users ON users.id = user_id').where('users.id IS NULL').destroy_all + AwardEmoji.joins('LEFT JOIN users ON users.id = user_id').where('users.id IS NULL').destroy_all # rubocop: disable DestroyAll end end |