From 782773f774cb7c000b48bf53c50b11d222950780 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 27 Jul 2014 11:30:55 +1000 Subject: [PATCH] FIX: kick system badges out of other --- db/fixtures/006_badges.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/fixtures/006_badges.rb b/db/fixtures/006_badges.rb index 6890d8a944b..81bc91d19f0 100644 --- a/db/fixtures/006_badges.rb +++ b/db/fixtures/006_badges.rb @@ -30,12 +30,12 @@ BadgeGrouping.seed do |g| end # BUGFIX -Badge.exec_sql 'UPDATE badges +Badge.exec_sql "UPDATE badges SET badge_grouping_id = -1 WHERE NOT EXISTS ( SELECT 1 FROM badge_groupings g WHERE g.id = badge_grouping_id - )' + ) OR (id < 100 AND badge_grouping_id = #{BadgeGrouping::Other} )" # Trust level system badges. trust_level_badges = [