def METHOD_NAME():
    database_operations = [
        migrations.AlterField(
            model_name="dashboard",
            name="created_by",
            field=sentry.db.models.fields.foreignkey.FlexibleForeignKey(
                to="sentry.User", db_constraint=False, db_index=True
            ),
        ),
    ]
    state_operations = [
        migrations.AlterField(
            model_name="dashboard",
            name="created_by",
            field=sentry.db.models.fields.hybrid_cloud_foreign_key.HybridCloudForeignKey(
                "sentry.User", on_delete="CASCADE"
            ),
        ),
        migrations.RenameField(
            model_name="dashboard",
            old_name="created_by",
            new_name="created_by_id",
        ),
    ]
    return database_operations + [
        migrations.SeparateDatabaseAndState(state_operations=state_operations)
    ]