diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-28 07:32:05 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-28 07:32:05 -0700 |
commit | f63dd4acd44291c582a398b30479ed8c8a2e56a4 (patch) | |
tree | 1928dfe15f68c065fcf8e7f2fb18edfc7c6f6add /activerecord/Rakefile | |
parent | 7e0cf563639bc7508da381b1b8321c7a89be1aa8 (diff) | |
parent | bd77fff4275467919dd85f9d5146b8bb87e8cfae (diff) | |
download | rails-f63dd4acd44291c582a398b30479ed8c8a2e56a4.tar.gz rails-f63dd4acd44291c582a398b30479ed8c8a2e56a4.tar.bz2 rails-f63dd4acd44291c582a398b30479ed8c8a2e56a4.zip |
Merge pull request #7394 from bobbyw/master
Use template0 option for creating activerecord test databases in build_database task with postgres
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") |