summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-10-28 00:47:56 +0000
committerGo MAEDA <maeda@farend.jp>2022-10-28 00:47:56 +0000
commit6a55e94cd2ac8ed2462aa8b80ab9a96a8d43e25b (patch)
treef70b3f3730e0a6910a7b110e738d60d8ef2549a1 /db
parent3e4d4d13bf40ce3b29b45bbb9052c0923a363bad (diff)
downloadredmine-6a55e94cd2ac8ed2462aa8b80ab9a96a8d43e25b.tar.gz
redmine-6a55e94cd2ac8ed2462aa8b80ab9a96a8d43e25b.zip
Fix RuboCop offense Rails/WhereMissing (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@21927 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20220224194639_delete_orphaned_time_entry_activities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20220224194639_delete_orphaned_time_entry_activities.rb b/db/migrate/20220224194639_delete_orphaned_time_entry_activities.rb
index 899fc5892..887b7bcab 100644
--- a/db/migrate/20220224194639_delete_orphaned_time_entry_activities.rb
+++ b/db/migrate/20220224194639_delete_orphaned_time_entry_activities.rb
@@ -1,6 +1,6 @@
class DeleteOrphanedTimeEntryActivities < ActiveRecord::Migration[6.1]
def self.up
- TimeEntryActivity.left_outer_joins(:project).where(projects: {id: nil}).where.not(project_id: nil).delete_all
+ TimeEntryActivity.where.missing(:project).where.not(project_id: nil).delete_all
end
def self.down