discourse-solved/spec/models
Natalie Tay 1805184cde
FIX: Multiple topics may have the same post as its solution (#348)
We are seeing some errors when migrating and adding indexes on `answer_post_id`.

```
#<StandardError:"An error has occurred, all later migrations canceled:\n\nPG::UniqueViolation: ERROR:  could not create unique index \"index_discourse_solved_solved_topics_on_answer_post_id\"\nDETAIL:  Key (answer_post_id)=(13006) is duplicated.\n">
```

This PR modifies the earlier migration, and also adds one before the addition of indexes to remove duplicates.
2025-03-26 22:21:32 +08:00
..
copy_solved_topic_custom_field_spec.rb FIX: Multiple topics may have the same post as its solution (#348) 2025-03-26 22:21:32 +08:00
remove_duplicates_from_discourse_solved_solved_topics_spec.rb FIX: Multiple topics may have the same post as its solution (#348) 2025-03-26 22:21:32 +08:00
site_spec.rb Revert "FIX: Use Guardian.basic_user instead of new (anon) (#270)" (#271) 2023-12-06 16:26:40 +10:00