# Foreign\_key to foreign\_key mapping

**URL:** <https://www.ruby-forum.com/t/foreign-key-to-foreign-key-mapping/134136>\
**Category:** Rails\
**Created:** [April 8, 2008, 8:03am UTC](https://www.ruby-forum.com/t/foreign-key-to-foreign-key-mapping/134136 "2008-04-08T08:03:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rashantha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@rashantha](https://www.ruby-forum.com/u/rashantha)\
**Post date:** [April 8, 2008, 8:03am UTC](https://www.ruby-forum.com/t/foreign-key-to-foreign-key-mapping/134136/1 "2008-04-08T08:03:07Z")

</div>

tables are created on for examples to show foreign\_key to foreign\_key

one table  
id  
ss\_id  
name

second table  
id  
false\_id  
name

belongs\_to :falseinformation, :class\_name =\> “One”, :foreign\_key =\>  
“false\_id”

now this would map false\_id -----\> one\_id  
but i want it to map like this  
false\_id -------\> ss\_id

can this be done?
