Can I use ActiveRecord relationships with fields from an Hstore?

醉酒当歌 提交于 2019-12-06 09:08:14
Alfredo Gallegos

I found overnight that Postgres has a similar data type called Jsonb, which also does a similar thing to hstore in the sense that you store a hash in a field in the relational database.

Apparently it is not currently possible due to a limitation in ActiveRecord to do this match that constrains matches to relational database fields only:

PostgreSQL jsonb field in ActiveRecord belongs_to association

Personally, I'm satisfied with that answer so I'll close this thread if nobody has more info, and of course I'll modify my schema.

Wonder if support could be patched?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!