Permalink
Browse files

Database creation for jdbcpostgresql #jruby

  • Loading branch information...
arunagw committed Apr 25, 2011
1 parent 16d3266 commit 253ba7779e62b334767b5b21f1811afcd0cb054d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'))

0 comments on commit 253ba77

Please sign in to comment.