Re: [Rails] Re: ActiveModel::Attributes (array: true) - should it require Postgres?

2019-08-11 Thread Patrick Davey
Thanks for the reply San Ji :) ActiveModel is database agnostic, however, the `attribute :foo, :my_custom_type, array: true` syntax [from the new activerecord::attributes api]( https://api.rubyonrails.org/classes/ActiveRecord/Attributes/ClassMethods.html) is only available to postgres, [as it's de

[Rails] ActiveModel::Attributes (array: true) - should it require Postgres?

2019-08-06 Thread Patrick Davey
Hi, I'm really enjoying using the new ActiveModel::Attributes API for making form objects (replacing Virtus). At the moment, if you want to do : class Foo include ActiveModel::Model include ActiveModel::Attributes attribute :bars, :string, array: true you _must_ be using the `postgresql