cabennett85/gittest — Issue #1175: claim_date should only be set when a user goes through the claiming flow
Author: cabennett85
Created: 2012-03-02 00:39:58+00:00
State: closed

claim_date should only be set when a user goes through the claiming flow

motivation:

I need to be able to distinguish between a cause that was claimed and one that was manually created. The autogen table isn't sufficient since there are some causes that we create manually and then remove ourselves from to have other people claim.

solution:

when a user goes through claim flow we set claim_date. If a cause was manually created we don't set claim_date. If a cause is unclaimed (not something users can do so it only applies to us, we should reset the claim_date to NULL/0 to reset it to a clean slate).

P.S. If it's not much work it'd be ideal to have claim_date be a datetime rather than date.