"""Rename User.buddies → User.buds.

Django's RenameField doesn't rename the implicit M2M through table
(`lyric_user_buddies` → `lyric_user_buds`), so we drop and re-add the
field. The buddies M2M was introduced one commit prior (0004) — no
production data to preserve. UI-vocabulary tightening (BILLBUDDIES
overflowed the page-header band; in-game term collapses to BILLBUDS).
"""
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("lyric", "0004_user_buddies"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="user",
            name="buddies",
        ),
        migrations.AddField(
            model_name="user",
            name="buds",
            field=models.ManyToManyField(
                blank=True,
                related_name="added_as_bud",
                to="lyric.user",
            ),
        ),
    ]
