aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorBobby Wilson <bobbywilson0@gmail.com>2012-08-19 20:05:15 -0600
committerBobby Wilson <bobbywilson0@gmail.com>2012-08-19 20:05:15 -0600
commitbd77fff4275467919dd85f9d5146b8bb87e8cfae (patch)
tree98d1f9be5c1e385370856c26e849f0899cc3d0ff /activerecord
parent937a8259219070251e0b46a9a456492e3bc4dc74 (diff)
downloadrails-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')
-rw-r--r--activerecord/Rakefile4
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")