On 9 December 2010 09:09, Basti Schenk <[email protected]> wrote: > Hello, > I want to change some tablenames on my DB, but I dont want to change the > modelnames in my RailsApp. So I write down this line of code in the > model with the changed table: " set_table_name "newName" " . Also I > changed in the migrationfiles the tablenames and renamed the fixtures. > > But if I now run " rake db:fixtures:load " I get an MySql Error: > > Mysql::Error: Unknown column 'foo' in 'field list': INSERT INTO > `newTablename` (`price`, `name`, `size`, `type`, `description`, > `provider`) VALUES (5.95, 'Pinot Grigio', '0.75l', 'wein', NULL, > 'joeys')
Is that literally exactly what you get? column 'foo'? and 'newTableName'? If not can you show exactly what it says? I also have country, rating, and buy_again in my wine list, though I doubt if that is part your problem. :) 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 [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.

