Skip to content

Commit f63dd4a

Browse files
committed
Merge pull request rails#7394 from bobbyw/master
Use template0 option for creating activerecord test databases in build_database task with postgres
2 parents 7e0cf56 + bd77fff commit f63dd4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ namespace :postgresql do
112112
desc 'Build the PostgreSQL test databases'
113113
task :build_databases do
114114
config = ARTest.config['connections']['postgresql']
115-
%x( createdb -E UTF8 #{config['arunit']['database']} )
116-
%x( createdb -E UTF8 #{config['arunit2']['database']} )
115+
%x( createdb -E UTF8 -T template0 #{config['arunit']['database']} )
116+
%x( createdb -E UTF8 -T template0 #{config['arunit2']['database']} )
117117

118118
# prepare hstore
119119
version = %x( createdb --version ).strip.gsub(/(.*)(\d\.\d\.\d)$/, "\\2")

0 commit comments

Comments
 (0)