Since Rails 4 and Postgres 9, array column
is introduced. I also tried using the array column to store something like tags
or categories
, which I don't often change and it is used as reference / facets for searching. I asked another question previously about querying with array column, and one of the answers mentioned never to use array to store data. I was then confused why array column is created if it is suggested never to use it. So my question is
When is it considered better to use array column v.s. Model associations in Rails?