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 | 12 | adapter: postgresql |
| 13 | 13 | encoding: unicode |
| 14 | 14 | database: noosfero_development |
| 15 | + template: template0 | |
| 15 | 16 | username: noosfero |
| 16 | 17 | password: |
| 17 | 18 | |
| ... | ... | @@ -37,6 +38,7 @@ test: &TEST |
| 37 | 38 | adapter: postgresql |
| 38 | 39 | encoding: unicode |
| 39 | 40 | database: noosfero_test |
| 41 | + template: template0 | |
| 40 | 42 | username: noosfero |
| 41 | 43 | password: |
| 42 | 44 | |
| ... | ... | @@ -44,6 +46,7 @@ production: |
| 44 | 46 | adapter: postgresql |
| 45 | 47 | encoding: unicode |
| 46 | 48 | database: noosfero_production |
| 49 | + template: template0 | |
| 47 | 50 | username: noosfero |
| 48 | 51 | password: |
| 49 | 52 | ... | ... |