Commit 195bb24186d8bcc4d04663f3b6f02304aaefb7f7

Authored by Rodrigo Souto
1 parent 7d210785

[postgres-tests] Fixing enterprise registration tests

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/region.rb
... ... @@ -8,7 +8,7 @@ class Region < Category
8 8 validators.count > 0
9 9 end
10 10  
11   - named_scope :with_validators, :select => 'DISTINCT categories.id',
  11 + named_scope :with_validators, :select => 'DISTINCT ON (categories.id) *',
12 12 :joins => 'INNER JOIN region_validators on (region_validators.region_id = categories.id)'
13 13  
14 14 end
... ...