On 8 April 2010 17:45, Everton Lucas <evtlu...@gmail.com> wrote:
> Yes I have the column estado with 2 characters. But if I
> define :estado => "RS" the error continues.
>
> On 8 abr, 13:18, Frederick Cheung <frederick.che...@gmail.com> wrote:
>> On Apr 8, 3:35 pm, Everton Lucas <evtlu...@gmail.com> wrote:> Hi Folks
>>
>> > I'm brand new in rails. I'm trying to build a little application, and
>> > when I tried to run a unit test, I got an error. The error follows
>> > below:
>>
>> > ActiveRecord::StatementInvalid: PGError: ERROR:  value too long for
>> > type character varying(2)
>>
>> It looks like the autogenerated fixtures file contains data that is
>> too long for some of your columns (I think rails just puts MyString in
>> all string fields, but some of your columns only have length 2)
>>

I think Fred meant you to look in the fixtures file that rails may
have autogenerated for you (test/fixtures/participantes.yml) and check
the lengths of data there.

Colin

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

Reply via email to