For some reason, I cannot get ActiveRecord to correctly format the insert statement when using an array type column. It seems to want to escape the Postgres notation:
{"val1", "val2", "val3"} into \{\"val1\", \"val2\", \"val3\"\}
Resulting in an error:
PG::Error: ERROR: array value must start with "{" or dimension information
Am I running my db commands wrong? rake db:seed and bundle exec rake db:seed cause this error as well as running migrations.
I'm running Rails 3.2.13 and Postgres 9.3.1
serializemethod.. Read up on "Saving arrays, hashes, and other non-mappable objects in text columns"serializemethod to store array should work for postgresql as well.