Permalink
Browse files

Merge pull request #7394 from bobbyw/master

Use template0 option for creating activerecord test databases in build_database task with postgres
  • Loading branch information...
2 parents 7e0cf56 + bd77fff commit f63dd4acd44291c582a398b30479ed8c8a2e56a4 @rafaelfranca rafaelfranca committed Sep 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/Rakefile
View
@@ -112,8 +112,8 @@ namespace :postgresql do
desc 'Build the PostgreSQL test databases'
task :build_databases do
config = ARTest.config['connections']['postgresql']
- %x( createdb -E UTF8 #{config['arunit']['database']} )
- %x( createdb -E UTF8 #{config['arunit2']['database']} )
+ %x( createdb -E UTF8 -T template0 #{config['arunit']['database']} )
+ %x( createdb -E UTF8 -T template0 #{config['arunit2']['database']} )
# prepare hstore
version = %x( createdb --version ).strip.gsub(/(.*)(\d\.\d\.\d)$/, "\\2")

0 comments on commit f63dd4a

Please sign in to comment.