Skip to content
Browse files

use template0 option for creating activerecord test databases in post…

…gres build_database task
  • Loading branch information...
1 parent 937a825 commit bd77fff4275467919dd85f9d5146b8bb87e8cfae @bobbywilson0 bobbywilson0 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/Rakefile
View
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")

0 comments on commit bd77fff

Please sign in to comment.
Something went wrong with that request. Please try again.