mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 17:48:39 +08:00

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.