seixasfelipe / cleaners

Cleaners - Management Application
MIT License
2 stars 0 forks source link

Adding task active field #24

Closed fabianoalmeida closed 11 years ago

fabianoalmeida commented 11 years ago

A task doesn't disappear from the system cause the client can see reports and graphs using obsolete information. So, adding a new boolean field we can define what task is available (active: true) or unavailable (active: false).

If a new feature needs an activated task, could be add Task.actives to list only tasks that been marked as activated. This isn't enough, I had to override the destroy method to just update active field to false instead remove it from database.

Related to #15.