I have the following associations:
Restaurant has_many Menus
Menu belongs_to Restaurant
Restaurant belongs_to City
City has_many Restaurants
When doing the following query:
Menu.includes(:restaurant).where("restaurants.city_id", 3)
I get the following error:
ActiveRecord::StatementInvalid: PG::Error: ERROR: argument of WHERE must be type boolean, not type integer
What am I doing wrong here?