Adds events has_many tasks
Adds events has_many tasks