# Using HasCustomFields in a plugin

**URL:** <https://meta.discourse.org/t/using-hascustomfields-in-a-plugin/176469>\
**Category:** Development\
**Created:** [January 18, 2021, 5:50pm UTC](https://meta.discourse.org/t/using-hascustomfields-in-a-plugin/176469 "2021-01-18T17:50:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [January 18, 2021, 5:55pm UTC](https://meta.discourse.org/t/using-hascustomfields-in-a-plugin/176469/2 "2021-01-18T17:55:26Z")

</div>

> [@pfaffman](#):
>
> If I use `pfaffmanager_server_id` instead of `server_id` the migration fails because it can’t find `server_id`

Did you also update the `add_index` call to point to `pfaffmanager_server_id`?

---

_[View the full topic](https://meta.discourse.org/t/using-hascustomfields-in-a-plugin/176469)._
