Topic: getting table doesn't exist in find
I just upgraded to Rails 3.2 from 2.3.14 and I am getting some really weird behavior.
In one of my models
class UsdaNutData < ActiveRecord::Base #establish_connection WEB_MEDIA_DATABASE belongs_to :usda_nut_def belongs_to :master_ingredient end
I do a really simple
And then it returns me
ActiveRecord::StatementInvalid in Ingredients#show Mysql2::Error: Table 'foodreka_development.usda_nut_data' doesn't exist: SHOW FULL FIELDS FROM `usda_nut_data`
What is weird is my table is usda_nut_datas. I don't know why it isn't picking up the right table.
Other models in the system seem to be working fine. Anyone have any idea of what to troubleshoot?