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!!! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 18 November 2010 17:33, kishoj <kishoj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
I removed from the fixtures, it worked!!! Thank you :-) On Nov 19, 12:44 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 18 November 2010 17:33, kishoj <kis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.