mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
ed688bec8c
The seed-fu gem resets the sequence on all the tables it touches. In some situations, this can cause primary keys to be re-used. This commit introduces a freedom patch which ensures seed-fu only touches the sequence when it is less than the id of one of the seeded records.