# Is there such an association as has\_and\_belongs\_to\_one?

**URL:** <https://www.ruby-forum.com/t/is-there-such-an-association-as-has-and-belongs-to-one/131499>\
**Category:** Rails\
**Created:** [March 10, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/is-there-such-an-association-as-has-and-belongs-to-one/131499 "2008-03-10T19:06:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 10, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/is-there-such-an-association-as-has-and-belongs-to-one/131499/1 "2008-03-10T19:06:50Z")

</div>

sorry - just had to post my colleague’s non-serious question!

(imagine the plugin;)

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 11, 2008, 6:12am UTC](https://www.ruby-forum.com/t/is-there-such-an-association-as-has-and-belongs-to-one/131499/2 "2008-03-11T06:12:06Z")

</div>

Phlip wrote:

> sorry - just had to post my colleague’s non-serious question!
> 
> (imagine the plugin;)

no

but you can

has\_many\_belongs\_to\_many :child .:limit=\>1
