# How should I model this?

**URL:** <https://www.ruby-forum.com/t/how-should-i-model-this/145460>\
**Category:** Rails\
**Created:** [August 10, 2008, 2:07am UTC](https://www.ruby-forum.com/t/how-should-i-model-this/145460 "2008-08-10T02:07:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 10, 2008, 2:07am UTC](https://www.ruby-forum.com/t/how-should-i-model-this/145460/1 "2008-08-10T02:07:37Z")

</div>

I have Users and Tasks.

Each User will complete the same Tasks, and I want to record the date  
of completion.

Any suggestions on the best way to model this?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 10, 2008, 2:13am UTC](https://www.ruby-forum.com/t/how-should-i-model-this/145460/2 "2008-08-10T02:13:28Z")

</div>

On 10 Aug 2008, at 01:06, removed\_email\_address@domain.invalid wrote:

> I have Users and Tasks.
> 
> Each User will complete the same Tasks, and I want to record the date  
> of completion.

Sounds like users have many tasks through some join model. An instance  
of that join model describes progress that user has made on the  
corresponding task

Fred

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 10, 2008, 2:36am UTC](https://www.ruby-forum.com/t/how-should-i-model-this/145460/3 "2008-08-10T02:36:51Z")

</div>

Use has many through with a new model called todo that will have  
completed at datetime field

[Http://www.rubyplus.org](Http://www.rubyplus.org)  
Free Ruby & Rails screencasts
