# 在哪里可以查看 PluginStoreRow 的使用情况？

**URL:** <https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120>\
**Category:** Development\
**Created:** [2018年三月29日 11:06 UTC](https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120 "2018-03-29T11:06:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [2018年三月29日 11:06 UTC](https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120/1 "2018-03-29T11:06:07Z")

</div>

I do not want to touch the main tables in the Discourse database.

Interestingly, there are examples of using PluginStorRov that would add the necessary information. In my case, I want to add information to the topics. This is equivalent if you add a column to the topic table.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018年四月3日 03:15 UTC](https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120/2 "2018-04-03T03:15:30Z")

</div>

> [@Stranik](#):
>
> I want to add information to the topics

In general we would use topic custom fields for that particular case as it fits nicer into the system.

---

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [2018年四月3日 07:01 UTC](https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120/3 "2018-04-03T07:01:46Z")

</div>

You mean something like that?

```
   Topic.register_custom_field_type('topic_info', :text)
   add_to_serializer(:topic_view, :custom_fields, false) {object.topic.custom_fields}

```

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018年四月3日 07:02 UTC](https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120/4 "2018-04-03T07:02:40Z")

</div>

similar I would look at the source code for `discourse-assign` for a working example.
