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')

Can anybody tell me what I do wrong?

-- 
Posted via http://www.ruby-forum.com/.

-- 
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