Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use template0 option for creating activerecord test databases in post…

…gres build_database task
  • Loading branch information...
commit bd77fff4275467919dd85f9d5146b8bb87e8cfae 1 parent 937a825
@bobbywilson0 bobbywilson0 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/Rakefile
4 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")
Please sign in to comment.
Something went wrong with that request. Please try again.