Commit bd1870c9bd40acb12a654b30e972707f3b25c0bf
1 parent
e960f24d
Exists in
master
and in
28 other branches
[postgres-tests] Fixing region tests
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/models/region.rb
@@ -8,9 +8,9 @@ class Region < Category | @@ -8,9 +8,9 @@ class Region < Category | ||
8 | validators.count > 0 | 8 | validators.count > 0 |
9 | end | 9 | end |
10 | 10 | ||
11 | - named_scope :with_validators, :group => 'id', | 11 | + named_scope :with_validators, :select => 'DISTINCT categories.id', |
12 | :joins => 'INNER JOIN region_validators on (region_validators.region_id = categories.id)' | 12 | :joins => 'INNER JOIN region_validators on (region_validators.region_id = categories.id)' |
13 | - | 13 | + |
14 | end | 14 | end |
15 | 15 | ||
16 | require_dependency 'city' | 16 | require_dependency 'city' |