Saving an object

suggest change

If you have an attribute that needs to be saved and retrieved to database as an object, then specify the name of that attribute using the serialize method and it will be handled automatically.

The attribute must be declared as a text field.

In the model you must declare the type of the field (Hash or Array)

More info at: serialize >> apidock.com

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Multi-purpose ActiveRecord columns:
*Saving an object

Table Of Contents
45Multi-purpose ActiveRecord columns
55CSV