# Need workaround for belongs\_to :finder\_sql

**URL:** <https://www.ruby-forum.com/t/need-workaround-for-belongs-to-finder-sql/92916>\
**Category:** Rails\
**Created:** [April 25, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/need-workaround-for-belongs-to-finder-sql/92916 "2007-04-25T17:46:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewildgoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bcef8e/32.png) [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Post date:** [April 25, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/need-workaround-for-belongs-to-finder-sql/92916/1 "2007-04-25T17:46:31Z")

</div>

Hi

I am building an interface around my postfix config files. I have a bit  
of a mix of primary keys with the “Mailboxes” table having a rails-esqe  
Id field for each user. However, my “Aliases” table has just From/To  
email addresses.

I would like to be able to add a couple of “belongs\_to” attributes to  
the Aliases model object which will give me a user object for both the  
From or To email addresses. Any suggestions on how to do this (or even  
if it’s worth bothering really… Just add finer methods…?)

Cheers

Ed W
