Ted Johansson
c4d0bbce62
DEV: Delete upload references upon deleting draft ( #22851 )
...
We currently are accumulating orphaned upload references whenever drafts are deleted.
This change deals with future cases by adding a dependent strategy of delete_all on the Draft#upload_references association. (We don't really need destroy strategy here, since UploadReference is a simple data bag and there are no validations or callbacks on the model.)
It deals with existing cases through a migration that deletes all existing, orphaned draft upload references.
2023-07-31 10:16:23 +08:00
..
2023-03-02 08:10:16 +10:00
2023-07-18 09:41:38 +08:00
2023-01-09 11:49:28 +00:00
2023-05-15 14:12:25 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-05-15 09:54:54 +02:00
2023-06-01 10:00:01 +10:00
2023-01-09 11:49:28 +00:00
2023-03-08 10:39:12 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-29 11:25:58 +10:00
2023-03-10 13:45:01 +08:00
2023-06-26 11:41:52 +02:00
2023-05-18 12:46:44 +03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-06 18:24:12 +00:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-31 10:16:23 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-25 13:50:45 +02:00
2023-04-13 15:38:54 +08:00
2023-06-13 22:02:21 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-05-24 09:57:46 +02:00
2023-06-26 11:41:52 +02:00
2023-03-01 15:35:21 +11:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-13 22:02:21 +02:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-03-02 16:40:53 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2023-05-25 14:38:34 -04:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-28 12:53:49 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-03-02 16:40:53 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-18 11:50:31 +00:00
2023-01-09 11:49:28 +00:00
2023-05-03 09:54:54 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-06-13 22:02:21 +02:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-04-05 10:52:18 +10:00
2023-06-15 11:36:38 +10:00
2023-05-24 08:59:19 +10:00
2023-01-09 11:49:28 +00:00
2023-05-30 18:41:50 -03:00
2023-06-13 22:02:21 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-06-27 14:49:34 +10:00
2023-06-09 13:53:21 -05:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-03-14 13:11:45 -05:00
2023-01-09 11:49:28 +00:00
2023-02-13 12:39:45 +08:00
2022-07-28 10:27:38 +08:00
2023-06-13 22:02:21 +02:00
2023-06-13 11:08:08 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 11:49:28 +00:00
2023-05-31 19:32:06 +05:30
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-11 15:24:13 -06:00
2023-01-20 09:50:24 +08:00
2023-06-13 22:02:21 +02:00
2023-01-09 11:49:28 +00:00
2023-07-13 18:05:56 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-14 16:52:39 +08:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-13 22:02:21 +02:00
2023-02-15 12:41:04 +11:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-06-01 10:00:01 +10:00
2023-04-24 20:36:40 +00:00
2023-07-28 12:53:46 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-07 04:52:10 +03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-03-01 12:23:29 +08:00
2023-01-09 11:49:28 +00:00
2023-07-28 16:16:23 +00:00
2023-07-18 11:50:31 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-05-02 17:34:53 +10:00
2023-01-09 11:49:28 +00:00
2023-05-06 07:15:33 +10:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00