aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-28 07:32:05 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-28 07:32:05 -0700
commitf63dd4acd44291c582a398b30479ed8c8a2e56a4 (patch)
tree1928dfe15f68c065fcf8e7f2fb18edfc7c6f6add /activerecord/Rakefile
parent7e0cf563639bc7508da381b1b8321c7a89be1aa8 (diff)
parentbd77fff4275467919dd85f9d5146b8bb87e8cfae (diff)
downloadrails-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/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")