mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:52:46 +08:00
ec2ed5b7f6
Currently we don’t have an association between reviewables and posts. This sometimes leads to inconsistencies in the DB as a post can have been deleted but an associated reviewable is still present. This patch addresses this issue simply by adding a new association to the `Post` model and by using the `dependent: :destroy` option. |
||
---|---|---|
.. | ||
fixtures | ||
migrate | ||
post_migrate | ||
api_test_seeds.rb |