Guest User

Untitled

a guest
Jul 23rd, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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