# To-do like task manager

**URL:** <https://www.ruby-forum.com/t/to-do-like-task-manager/107533>\
**Category:** Rails\
**Created:** [June 22, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/to-do-like-task-manager/107533 "2007-06-22T19:09:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaNNiBaL80](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecd19e/32.png) [@HaNNiBaL80](https://www.ruby-forum.com/u/HaNNiBaL80)\
**Post date:** [June 22, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/to-do-like-task-manager/107533/1 "2007-06-22T19:09:08Z")

</div>

Hello, I’m trying to create a task manager aplication for an  
acountants firm.

I have several regular tasks so I defined the aplication in two  
tables :

“task\_type”

```
     name;
     time-> montly or every 3 monts;
     end_date -> the date when the task has to be completed

```

“task”

```
     task_type_id
     task_start_date
     state

```

I need to automaticly create several tasks that will repeat themselfs  
in a year acording to their “time” (defined in task\_type), I can just  
create an interface that will do this …

The problem is that I need to have create new task\_types every year ,  
I can’t just change them because I will need to have the old data  
available for my users.

How can I create the “task\_type” and tasks without user interference ?

---

<div class="post-metadata">

**Author:** ![HaNNiBaL80](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecd19e/32.png) [@HaNNiBaL80](https://www.ruby-forum.com/u/HaNNiBaL80)\
**Post date:** [June 22, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/to-do-like-task-manager/107533/2 "2007-06-22T19:13:08Z")

</div>

HaNNiBaL80 wrote:

> ```
> end_date -> the date when the task has to be completed
> 
> ```
> 
> The problem is that I need to have create new task\_types every year ,  
> I can’t just change them because I will need to have the old data  
> available for my users.
> 
> How can I create the “task\_type” and tasks without user interference ?

I think something like backgroundRb or Cron should be able to schedule a  
script that will run at defined intervals (every Dec 31st - to create  
all the tasks for the new year, or every night - to create all tasks  
that expired today which should be repeated) and insert the new tasks.

Hope this helps.

Cheers,  
Mohit.  
6/23/2007 | 1:11 AM.
