diff options
author | Sebastian A. Espindola <sespindola@gmail.com> | 2008-07-08 01:14:11 -0300 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-07-14 04:11:52 +0100 |
commit | 0176e6adb388998414083e99523de318d3b8ca49 (patch) | |
tree | 5ba0497b13764584a43a50b7cd98f2b1b4bf8d07 /railties | |
parent | 5c086070824bf7dd2bc4c9ce97956d82ac3fa206 (diff) | |
download | rails-0176e6adb388998414083e99523de318d3b8ca49.tar.gz rails-0176e6adb388998414083e99523de318d3b8ca49.tar.bz2 rails-0176e6adb388998414083e99523de318d3b8ca49.zip |
Added db:charset support to PostgreSQL. [#556 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/databases.rake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index 87934c295e..5ec712a02d 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -141,6 +141,9 @@ namespace :db do when 'mysql' ActiveRecord::Base.establish_connection(config) puts ActiveRecord::Base.connection.charset + when 'postgresql' + ActiveRecord::Base.establish_connection(config) + puts ActiveRecord::Base.connection.encoding else puts 'sorry, your database adapter is not supported yet, feel free to submit a patch' end |