On 14 July 2011 19:55, joanne ta <[email protected]> wrote:

> On Thu, Jul 14, 2011 at 2:40 PM, Michael Pavling <[email protected]>wrote:
>
>> Have you read the error?
>>
>> Error:
>>> SQLException: table languages has no column named name_id
>>>
>>>
>> Seems obvious to me... have you altered your table/migrations?
>>
>
> no, i did not change anything from DB or table
> I am really dont understand what the error is warned about
>
>>
Since you took the advice to change the foreign key from "name" to
"name_id", you need to change the DB field to match. Alter your migration,
and run it again, or create a new migration to rename the field.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to