# RailsプラグインとDiscourseプラグインの違いは何ですか？

**URL:** https://meta.discourse.org/t/rails-plugins-vs-discourse-plugins-what-is-the-difference/127109
**Category:** Development
**Created:** [2019 年 8 月 29 日午後 12:15 UTC](https://meta.discourse.org/t/rails-plugins-vs-discourse-plugins-what-is-the-difference/127109 "2019-08-29T12:15:42Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2019 年 8 月 30 日午後 6:14 UTC](https://meta.discourse.org/t/rails-plugins-vs-discourse-plugins-what-is-the-difference/127109/9 "2019-08-30T18:14:38Z")

</div>

興味深い関連ディスカッションがあります：

> [@Adding jsonb columns for custom fields](https://meta.discourse.org/t/adding-jsonb-columns-for-custom-fields/93418):
>
> Often times when developing plugins, I’ve had to use the CustomField or PluginRowStore tables to store arbitrary data related to the plugin (for example, [retort](https://meta.discourse.org/t/retort-a-reaction-style-plugin-for-discourse/35903) stores a string representation of reactions to a particular post as a PostCustomField) This works well for simple data, but for anything a bit more complex, I’ve found myself wanting access to more than a postgres text-valued column can provide. Postgres has supported the jsonb column type for several versions now ([since 9.4](https://www.postgresql.org/docs/9.4/static/datatype-json.html)), which pro…

---

_[View the full topic](https://meta.discourse.org/t/rails-plugins-vs-discourse-plugins-what-is-the-difference/127109)._
