[Rails] Re: PostgreSQL Array column + has_many association

2019-02-04 Thread Carlos Ferreira da Silva
I have seen this GEM before, but I wouldn't recommend it, because it doesn't use ActiveRecord Relation, which means that it probably doesn't work with "preload". I'm planning to add this feature to my own PostgreSQL GEM this month, so if you are still interested in this feature, keep track of

[Rails] Re: PostgreSQL Array column + has_many association

2019-02-04 Thread Eric Anderson
I don't think this is supported out-of-the-box in Rails but I did see this extension a while back that appears to add what you are looking for: https://github.com/marshall-lee/has_array_of Haven't personally used it but looks promising. Eric On Wednesday, April 11, 2018 at 7:51:00 AM UTC-4,

[Rails] Re: PostgreSQL Array column + has_many association

2019-02-01 Thread Cesar Bejarano
Hi Carlos, any clue with this? I have same problem! El miércoles, 11 de abril de 2018, 5:51:00 (UTC-6), Carlos Ferreira da Silva escribió: > > I'm trying to use an array column to crete an association between 2 > models. I remember that in the past this was working, but I think something >