]> cat aescling's git repositories - mastodon.git/commit
Fix owned account notes not being deleted when an account is deleted (#16579)
authorClaire <claire.github-309c@sitedethib.com>
Sun, 8 Aug 2021 13:29:57 +0000 (15:29 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Aug 2021 13:29:57 +0000 (15:29 +0200)
commit763ab0c7eb5430235ca8a354d11e00de1d8ba6dd
tree424b1ab20882facd51ef8e1140381b6cf56e850f
parent818e0b314fc81005dc9a73b53331f75ad52daa0d
Fix owned account notes not being deleted when an account is deleted (#16579)

* Add account_notes relationship

* Add tests

* Fix owned account notes not being deleted when an account is deleted

* Add post-migration to clean up orphaned account notes
app/models/concerns/account_interactions.rb
app/services/delete_account_service.rb
db/post_migrate/20210808071221_clear_orphaned_account_notes.rb [new file with mode: 0644]
db/schema.rb
spec/services/delete_account_service_spec.rb