mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:28:38 +08:00

There is an fk to user_profile that can make destroying uploads fail if they happen to be set as user profile. This ensures we clear this information when destroying uploads. There are more relationships, but this makes some more progress.