Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- has_one :city_name, :primary_key => "city", :foreign_key => "name", :class_name => "City"
- has_one :catalog_area, :through => :city_name
- ###
- CatalogArea Load (0.4ms) SELECT `catalog_areas`.* FROM `catalog_areas` INNER JOIN `cities` ON `catalog_areas`.id = `cities`.catalog_area_id WHERE ((`cities`.name = 100)) LIMIT 1
Add Comment
Please, Sign In to add comment