diff options
author | Bobby Wilson <bobbywilson0@gmail.com> | 2012-08-19 20:05:15 -0600 |
---|---|---|
committer | Bobby Wilson <bobbywilson0@gmail.com> | 2012-08-19 20:05:15 -0600 |
commit | bd77fff4275467919dd85f9d5146b8bb87e8cfae (patch) | |
tree | 98d1f9be5c1e385370856c26e849f0899cc3d0ff /activerecord/Rakefile | |
parent | 937a8259219070251e0b46a9a456492e3bc4dc74 (diff) | |
download | rails-bd77fff4275467919dd85f9d5146b8bb87e8cfae.tar.gz rails-bd77fff4275467919dd85f9d5146b8bb87e8cfae.tar.bz2 rails-bd77fff4275467919dd85f9d5146b8bb87e8cfae.zip |
use template0 option for creating activerecord test databases in postgres build_database task
Diffstat (limited to 'activerecord/Rakefile')
-rw-r--r-- | activerecord/Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index a29d7b0e99..53ddff420e 100644 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -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") |