SHOW:
|
|
- or go back to the newest paste.
| 1 | has_one :city_name, :primary_key => "city", :foreign_key => "name", :class_name => "City" | |
| 2 | has_one :catalog_area, :through => :city_name | |
| 3 | ||
| 4 | ### | |
| 5 | ||
| 6 | ||
| 7 | 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 |