Commit 25126f2ba37a68a1437a49d52a99e233d13c0e20
1 parent
bc719cf6
Exists in
master
and in
22 other branches
DB config: use template0 for PostgreSQL
This fixes creating databases with UTF-8 encoding by default
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
config/database.yml.pgsql
@@ -12,6 +12,7 @@ development: | @@ -12,6 +12,7 @@ development: | ||
12 | adapter: postgresql | 12 | adapter: postgresql |
13 | encoding: unicode | 13 | encoding: unicode |
14 | database: noosfero_development | 14 | database: noosfero_development |
15 | + template: template0 | ||
15 | username: noosfero | 16 | username: noosfero |
16 | password: | 17 | password: |
17 | 18 | ||
@@ -37,6 +38,7 @@ test: &TEST | @@ -37,6 +38,7 @@ test: &TEST | ||
37 | adapter: postgresql | 38 | adapter: postgresql |
38 | encoding: unicode | 39 | encoding: unicode |
39 | database: noosfero_test | 40 | database: noosfero_test |
41 | + template: template0 | ||
40 | username: noosfero | 42 | username: noosfero |
41 | password: | 43 | password: |
42 | 44 | ||
@@ -44,6 +46,7 @@ production: | @@ -44,6 +46,7 @@ production: | ||
44 | adapter: postgresql | 46 | adapter: postgresql |
45 | encoding: unicode | 47 | encoding: unicode |
46 | database: noosfero_production | 48 | database: noosfero_production |
49 | + template: template0 | ||
47 | username: noosfero | 50 | username: noosfero |
48 | password: | 51 | password: |
49 | 52 |