What does inverse_of do? What SQL does it generate?
From the documentation, it seems like the :inverse_of option is a method for avoiding SQL queries, not generating them. It’s a hint to ActiveRecord to use already loaded data instead of fetching it again through a relationship. Their example: class Dungeon < ActiveRecord::Base has_many :traps, :inverse_of => :dungeon has_one :evil_wizard, :inverse_of => :dungeon end class … Read more