Ruby on Rails Friday, March 2, 2012

I am using rails3. when i am trying to insert data into postgrsql got the error like this



PGError: ERROR:  value too long for type character varying(15)

In the migration file have  t.string :contact_number,:limit=>15,:null=>false. this string because the contact_number will be +91 9387292839. Why getting like this.....?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_Kyrrp5Wq3AJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment