Mercurial > hg > soundsoftware-site
view .svn/pristine/ce/ce65654e5d3100fb21c21908fc51e7ada1fc2c4a.svn-base @ 1628:9c5f8e24dadc live tip
Quieten this cron script
author | Chris Cannam |
---|---|
date | Tue, 25 Aug 2020 11:38:49 +0100 |
parents | dffacf8a6908 |
children |
line wrap: on
line source
class DeleteOrphanTimeEntriesCustomValues < ActiveRecord::Migration def up CustomValue.where("customized_type = ? AND NOT EXISTS (SELECT 1 FROM #{TimeEntry.table_name} t WHERE t.id = customized_id)", "TimeEntry").delete_all end def down # nop end end