Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8701: add_utf8_encoding_to_mysql_postgres.diff

File add_utf8_encoding_to_mysql_postgres.diff, 1.5 kB (added by matt, 3 years ago)
  • railties/configs/databases/postgresql.yml

    old new  
    66#   gem install postgres-pr 
    77development: 
    88  adapter: postgresql 
     9  encoding: unicode 
    910  database: <%= app_name %>_development 
    1011  username: <%= app_name %> 
    1112  password: 
     
    3334# Do not set this db to the same as development or production. 
    3435test: 
    3536  adapter: postgresql 
     37  encoding: unicode 
    3638  database: <%= app_name %>_test 
    3739  username: <%= app_name %> 
    3840  password: 
    3941 
    4042production: 
    4143  adapter: postgresql 
     44  encoding: unicode 
    4245  database: <%= app_name %>_production 
    4346  username: <%= app_name %> 
    4447  password: 
  • railties/configs/databases/mysql.yml

    old new  
    1313#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html 
    1414development: 
    1515  adapter: mysql 
     16  encoding: utf8 
    1617  database: <%= app_name %>_development 
    1718  username: root 
    1819  password: 
     
    2728# Do not set this db to the same as development or production. 
    2829test: 
    2930  adapter: mysql 
     31  encoding: utf8 
    3032  database: <%= app_name %>_test 
    3133  username: root 
    3234  password: 
     
    3840 
    3941production: 
    4042  adapter: mysql 
     43  encoding: utf8 
    4144  database: <%= app_name %>_production 
    4245  username: root 
    4346  password: