I am new to rails and building an app to fetch json data from an external website and save it in the database. The json has the following fields under User:
{ "id": , "name": " ", "username": " ", "email": " ", "address": { "street": " ", "suite": " ", "city": " ", "zipcode": " ", } "phone": " ", "website": " " },
I know how to create a User model with name, username, and email. But how do I add address that has multiple sub-attributes. I did not see "array" as an option to choose from for creating model. Thank you in advance.