I am a complete newbie to PostgreSQL. And I was really amazed at the hstore data type provided by Postgres. Well, I use the Rails 3 framework and am developing a simple application that uses PostgreSQL. I want to save an array of hashes in a field. For instance:
authors: [
{
name: "abc",
email: "abc@example.com"
},
{
name: "xyz",
email: "xyz@example.com"
}
]
Is this possible in PostgreSQL using Rails 3? If so, can someone make it clear how?
thank
source
share