Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Can any one suggest why the following query might be raising error:

TypeError: can't dump anonymous class Class: INSERT INTO "emails" ("content", "created_at", "email_from", "email_to", "filter_id", "filter_property_id", "if_processed", "merchant_id", "message_id", "sent_at", "subject", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id"

I am using active record method to create the record and it works locally fine with sqlite. But after I push it to heroku I am getting this error.

I am currently developing on windows and getting to run postgres is quite tricky I guess which requires installing cygwin, that is the reason why I am not developing with postgres locally.

share|improve this question
What code is triggering that INSERT and what data are you giving it? – mu is too short Jul 6 at 17:01
add comment (requires an account with 50 reputation)

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.