thorpedosg

Untitled

Jul 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Add Comment
Please, Sign In to add comment