This has been driving me crazy. I've done lots of google and stackoverflow searches but can't find a solution. I have 2 models: FoodMenu and Product. FoodMenu has_many :products and Product belongs_to :food_menu. The products table has a "food_menu_id" column and I've also done add_index :products, :food_menu_id.This has been driving me crazy. I've done lots