DEV: Correct historical badge and user_badge index discrepancies (PR #10017)

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 This migration adds the index to very old sites, so that we have a consistent state