# Introduction to Foreign Keys?

**URL:** <https://www.ruby-forum.com/t/introduction-to-foreign-keys/99515>\
**Category:** Ruby\
**Created:** [July 23, 2006, 6:36pm UTC](https://www.ruby-forum.com/t/introduction-to-foreign-keys/99515 "2006-07-23T18:36:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raffir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/2acd7d/32.png) [@raffir](https://www.ruby-forum.com/u/raffir)\
**Post date:** [July 23, 2006, 6:36pm UTC](https://www.ruby-forum.com/t/introduction-to-foreign-keys/99515/1 "2006-07-23T18:36:49Z")

</div>

I’m relatively new to Rails and SQL. I’ve been working on an  
application for a while now, and I feel that I could really benefit  
from an introduction to using foreign keys both in SQL and Rails. Is  
such an introduction available? Where would I find one?

Thanks,

- Raffi.

---

<div class="post-metadata">

**Author:** ![raffir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/2acd7d/32.png) [@raffir](https://www.ruby-forum.com/u/raffir)\
**Post date:** [July 23, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/introduction-to-foreign-keys/99515/2 "2006-07-23T20:36:14Z")

</div>

On Jul 23, 2006, at 12:35 PM, removed\_email\_address@domain.invalid wrote:

> I’m relatively new to Rails and SQL. I’ve been working on an  
> application for a while now, and I feel that I could really benefit  
> from an introduction to using foreign keys both in SQL and Rails. Is  
> such an introduction available? Where would I find one?

It’s hard to say just how low level you should start. But the Agile  
Development with Rails book contains a bit of info on foreign keys  
and is a pretty good read in general.  
-Mat
