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 defined on the postgres adapter](
https://api.rubyonrails.org/classes/ActiveRecord/Attributes/ClassMethods.html#method-i-attribute-label-Options
)

Possibly my question should be put to the core-team mailing list, as,
really I'm wondering about whether the feature should be built in.

On Mon, 12 Aug 2019 at 04:18, San Ji <sarun...@gmail.com> wrote:

> Sorry wrong reference
> You should look at
>
> https://apidock.com/rails/ActiveRecord/AttributeMethods/Serialization/ClassMethods/serialize
> instead.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/439ffc74-10af-4f35-950d-c161256cdb1a%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/439ffc74-10af-4f35-950d-c161256cdb1a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
http://blog.psdavey.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CANQ7O3E2MRdk6c3apSxzSFjjcM%3Dw2nUfHwibObP7xzbM_h6NeQ%40mail.gmail.com.

Reply via email to