Commit 79fbff2bb7ad99789ec63300c6afe83df23b07ea
Exists in
colab
and in
4 other branches
Merge pull request #314 from mezuro/fix-postgres-template
Avoid encoding mismatch issue with PgSQL
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
config/database.yml.postgresql_sample
@@ -11,6 +11,7 @@ development: &development | @@ -11,6 +11,7 @@ development: &development | ||
11 | pool: 5 | 11 | pool: 5 |
12 | username: prezento | 12 | username: prezento |
13 | password: prezento | 13 | password: prezento |
14 | + template: template0 # avoid encoding mismatch issue by ignoring the default template | ||
14 | 15 | ||
15 | # Warning: The database defined as "test" will be erased and | 16 | # Warning: The database defined as "test" will be erased and |
16 | # re-generated from your development database when you run "rake". | 17 | # re-generated from your development database when you run "rake". |
@@ -23,6 +24,7 @@ test: &test | @@ -23,6 +24,7 @@ test: &test | ||
23 | pool: 5 | 24 | pool: 5 |
24 | username: prezento | 25 | username: prezento |
25 | password: prezento | 26 | password: prezento |
27 | + template: template0 | ||
26 | 28 | ||
27 | production: | 29 | production: |
28 | adapter: postgresql | 30 | adapter: postgresql |
@@ -31,6 +33,7 @@ production: | @@ -31,6 +33,7 @@ production: | ||
31 | pool: 5 | 33 | pool: 5 |
32 | username: prezento | 34 | username: prezento |
33 | password: prezento | 35 | password: prezento |
36 | + template: template0 | ||
34 | 37 | ||
35 | cucumber: | 38 | cucumber: |
36 | <<: *test | 39 | <<: *test |