Thursday, November 18, 2010

[Rails] Re: Testing Error: ActiveRecord::StatementInvalid

I removed from the fixtures, it worked!!! Thank you :-)

On Nov 19, 12:44 am, Colin Law <clan...@googlemail.com> wrote:
> On 18 November 2010 17:33, kishoj <kis...@gmail.com> wrote:
>
> > I intentionally deleted the attribute author from the table comments.
> > When I used functional testing, I got the following message
> > ActiveRecord::StatementInvalid: PGError: ERROR:  column "author" of
> > relation "comments" does not exist
> > What should I need to do in order to avoid this error message!!!
>
> Don't reference author anywhere.
>
> Perhaps you forgot to remove it from fixtures or factories?
>
> 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-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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate