Crate with Rails - Object data type

Another great feature of Crate, besides the already mentioned Arrays is the possibility to store objects. In Rails you might already have used it’s #serialize functionality to serialize an object or some key/value data into a column. You can do that with Crate as well, however it will be stored as an object with (optionally) a defined structure that you can query after. If you store an address on a user object you can query that object, or better said it’s attribute directly, like

read more