mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Badge and user_badge tables were created using add_column index: true
When the migration was written, `index: true` was a no-op for non-reference columns
Since then, rails made it work 9a0d35e820
This migration adds the index to very old sites, so that we have a consistent state