mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use template0 option for creating activerecord test databases in postgres build_database task
This commit is contained in:
parent
937a825921
commit
bd77fff427
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue