diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-25 18:01:15 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-25 18:01:15 +0000 |
commit | 2cda5096b8c02b1fbabc2857472ee03d7ecfe047 (patch) | |
tree | 0a77828cdc480e6587c506c6913f9bdbd4980218 /railties/configs | |
parent | ec5b2b503c2d7a7d0091e2a08f3069da4df8976e (diff) | |
download | rails-2cda5096b8c02b1fbabc2857472ee03d7ecfe047.tar.gz rails-2cda5096b8c02b1fbabc2857472ee03d7ecfe047.tar.bz2 rails-2cda5096b8c02b1fbabc2857472ee03d7ecfe047.zip |
MySQL, PostgreSQL: database.yml defaults to utf-8. Closes #8701.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/configs')
-rw-r--r-- | railties/configs/databases/mysql.yml | 3 | ||||
-rw-r--r-- | railties/configs/databases/postgresql.yml | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/railties/configs/databases/mysql.yml b/railties/configs/databases/mysql.yml index b3525663bf..aae510f860 100644 --- a/railties/configs/databases/mysql.yml +++ b/railties/configs/databases/mysql.yml @@ -13,6 +13,7 @@ # http://dev.mysql.com/doc/refman/5.0/en/old-client.html development: adapter: mysql + encoding: utf8 database: <%= app_name %>_development username: root password: @@ -27,6 +28,7 @@ development: # Do not set this db to the same as development or production. test: adapter: mysql + encoding: utf8 database: <%= app_name %>_test username: root password: @@ -38,6 +40,7 @@ test: production: adapter: mysql + encoding: utf8 database: <%= app_name %>_production username: root password: diff --git a/railties/configs/databases/postgresql.yml b/railties/configs/databases/postgresql.yml index 3c146c13a1..ee5a9d117a 100644 --- a/railties/configs/databases/postgresql.yml +++ b/railties/configs/databases/postgresql.yml @@ -6,6 +6,7 @@ # gem install postgres-pr development: adapter: postgresql + encoding: unicode database: <%= app_name %>_development username: <%= app_name %> password: @@ -33,12 +34,14 @@ development: # Do not set this db to the same as development or production. test: adapter: postgresql + encoding: unicode database: <%= app_name %>_test username: <%= app_name %> password: production: adapter: postgresql + encoding: unicode database: <%= app_name %>_production username: <%= app_name %> password: |