mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Fix RuboCop offense Rails/WhereMissing (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@21927 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
class DeleteOrphanedTimeEntryActivities < ActiveRecord::Migration[6.1]
|
class DeleteOrphanedTimeEntryActivities < ActiveRecord::Migration[6.1]
|
||||||
def self.up
|
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
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
|||||||
Reference in New Issue
Block a user