On Thu, Jul 14, 2011 at 3:04 PM, Michael Pavling <[email protected]> wrote:
> 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. > > No, it does not work, :( . it is an error of no column table languages has no column named name_id: INSERT INTO "languages" "name_english", "created_at", "updated_at", "id", "name_id") VALUES ( 'english', '2011-07-14 19:10:54', '2011-07-14 19:10:54', 980190962, 64810937) It is there -- > 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. > -- 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.

