diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-04-26 02:13:20 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-04-26 02:13:20 +0530 |
commit | 253ba7779e62b334767b5b21f1811afcd0cb054d (patch) | |
tree | 0e14060df8fb7cbf2c21c82e7286b105a229e72a | |
parent | 16d3266144caeaca6385ed77ecd7d4e620160dec (diff) | |
download | rails-253ba7779e62b334767b5b21f1811afcd0cb054d.tar.gz rails-253ba7779e62b334767b5b21f1811afcd0cb054d.tar.bz2 rails-253ba7779e62b334767b5b21f1811afcd0cb054d.zip |
Database creation for jdbcpostgresql #jruby
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index a49f940e5b..7d76d7a19f 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -100,7 +100,7 @@ db_namespace = namespace :db do $stderr.puts "(if you set the charset manually, make sure you have a matching collation)" if config['charset'] end end - when 'postgresql' + when /postgresql/ @encoding = config['encoding'] || ENV['CHARSET'] || 'utf8' begin ActiveRecord::Base.establish_connection(config.merge('database' => 'postgres', 'schema_search_path' => 'public')) |