ensl.org/app/models
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
..
concerns fixed parsed signatures might be bigger than allowed by database 2017-06-12 20:30:10 +02:00
article.rb Make rules link in navigation point to current rules 2017-10-30 13:26:51 +01:00
ban.rb fixed logical flaw in last commit 2017-03-08 02:21:49 +01:00
bracket.rb Initial article text code 2014-03-26 11:09:39 +00:00
bracketer.rb Initial article text code 2014-03-26 11:09:39 +00:00
category.rb Update to new rules and updated categories 2017-02-27 23:21:59 +01:00
challenge.rb Init ladder prototype. Challenge stuff is still mostly broken. 2015-05-16 16:08:05 +02:00
comment.rb Changed newrelic configuration to load from environment variables 2014-03-30 20:50:52 +01:00
contest.rb Init ladder prototype. Challenge stuff is still mostly broken. 2015-05-16 16:08:05 +02:00
contester.rb Make ladders 'work', they are still not rly working like a ladder 2018-02-12 23:21:08 +01:00
custom_url.rb Implementing custom_url logic 2017-11-12 18:02:53 +01:00
data_file.rb Initial article text code 2014-03-26 11:09:39 +00:00
directory.rb Initial article text code 2014-03-26 11:09:39 +00:00
forum.rb Fix forum access rules. 2015-04-09 13:44:30 +02:00
forumer.rb Initial article text code 2014-03-26 11:09:39 +00:00
gather.rb add gathermod to gatherpage permissions 2018-11-15 20:59:36 +01:00
gather_map.rb Initial article text code 2014-03-26 11:09:39 +00:00
gather_server.rb Initial article text code 2014-03-26 11:09:39 +00:00
gatherer.rb Partially fix gather removal bug 2019-06-07 22:47:21 +03:00
group.rb removed shoutmsg history 2018-09-21 17:30:43 +02:00
grouper.rb Initial article text code 2014-03-26 11:09:39 +00:00
issue.rb fixed issues with NULL category not showing 2017-07-02 22:48:33 +02:00
lock.rb Initial article text code 2014-03-26 11:09:39 +00:00
map.rb Initial article text code 2014-03-26 11:09:39 +00:00
match.rb Make ladders 'work', they are still not rly working like a ladder 2018-02-12 23:21:08 +01:00
match_proposal.rb Creating view to show confirmed matches, fixing bugs in permission logic and making proposal status updates ajax requests 2017-10-07 12:28:06 +02:00
matcher.rb Initial article text code 2014-03-26 11:09:39 +00:00
message.rb Made System send a message to opposing team on proposal creation, created a clean migration for match_proposals table 2017-10-13 17:53:48 +02:00
movie.rb Initial article text code 2014-03-26 11:09:39 +00:00
option.rb Initial article text code 2014-03-26 11:09:39 +00:00
poll.rb Initial article text code 2014-03-26 11:09:39 +00:00
post.rb Changed newrelic configuration to load from environment variables 2014-03-30 20:50:52 +01:00
prediction.rb Allow higher amount of points for matches... ask Mega why this is needed 2018-02-12 00:15:38 +01:00
profile.rb Create new annotations for models 2015-05-14 17:29:16 +01:00
server.rb Rerun annotate on server spec 2015-05-22 14:17:07 +01:00
shoutmsg.rb Revert "Fix some logic errors with captains" 2014-12-08 09:35:40 -05:00
team.rb Fix #131 Updating users may fail 2019-08-24 20:17:14 +02:00
teamer.rb Fix #131 Updating users may fail 2019-08-24 20:17:14 +02:00
topic.rb Limit by 200 2015-09-05 19:16:14 +01:00
user.rb Fixing Tests 2017-12-06 22:20:55 +01:00
view_count.rb Initial article text code 2014-03-26 11:09:39 +00:00
vote.rb Initial article text code 2014-03-26 11:09:39 +00:00
week.rb Initial article text code 2014-03-26 11:09:39 +00:00