Obtaining table information from "belongs_to"? (reflection?)

""" Returns the AssociationReflection object for the named aggregation (use the symbol). Example:

  Account.reflect_on_association(:owner) # returns the owner AssociationReflection   Invoice.reflect_on_association(:line_items).macro # returns :has_many """

Then you should be able to call table_name() on the AssociationReflection: Account.reflect_on_association(:owner).table_name # returns 'account'

Kevin