Commit graph

3 commits

Author SHA1 Message Date
Absurdon
e93588591b
Fix #131 Updating users may fail
Issue:
When a team gets deleted team_id is not properly cleared from users who
have set the team to be deleted as their main. When now someone trys
an operation that validates the user it fails as the team_id set on that
user is not valid anymore.

Solution:
To prevent this from happening in the future update users and set
team_id to nil.

Clean up:
To clean up existing users run
UPDATE users SET team_id=NULL WHERE team_id NOT IN(SELECT id FROM
teams);
2019-08-24 20:17:14 +02:00
Luke Barratt
4199062a9c Initial article text code
Added model annotations
2014-03-26 11:09:39 +00:00
Luke Barratt
6bcc8dc76b Purged git history and removed sensitive information. 2014-03-23 00:22:25 +00:00