mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
![]() Currently, creating tags concurrently with different case letters can raise a PostgreSQL unique constraint error (index_tags_on_name_lower_btree). This commit normalizes tag names to lowercase and uses first_or_create! with a rescue for RecordNotUnique to ensure that only one tag is created even under race conditions. A test is added to simulate concurrent tag creation and verify that only a single tag exists and no errors occur. |
||
---|---|---|
.. | ||
chewy | ||
controllers | ||
helpers | ||
inputs | ||
javascript | ||
lib | ||
mailers | ||
models | ||
policies | ||
presenters | ||
serializers | ||
services | ||
validators | ||
views | ||
workers |