mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
git-svn-id: https://svn.redmine.org/redmine/trunk@21927 e93f8b46-1217-0410-a6f0-8f06a7374b81
10 lines
214 B
Ruby
10 lines
214 B
Ruby
class DeleteOrphanedTimeEntryActivities < ActiveRecord::Migration[6.1]
|
|
def self.up
|
|
TimeEntryActivity.where.missing(:project).where.not(project_id: nil).delete_all
|
|
end
|
|
|
|
def self.down
|
|
# no-op
|
|
end
|
|
end
|