From af081b3677dfaf53b6d045c1af9ecf2ecc8e79a1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 6 Mar 2005 23:40:19 +0000 Subject: [PATCH] Fix database creation for postgres (again) #790 [adamm ] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/fresh_rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/fresh_rakefile b/railties/fresh_rakefile index fa9abbff66..0ae3530af7 100755 --- a/railties/fresh_rakefile +++ b/railties/fresh_rakefile @@ -152,8 +152,8 @@ task :purge_test_database => :environment do ActiveRecord::Base.establish_connection(abcs[RAILS_ENV]) ActiveRecord::Base.connection.recreate_database(abcs["test"]["database"]) when "postgresql" - `dropdb -U #{abcs["test"]["username"]} -h #{abcs[RAILS_ENV]["host"]} #{abcs["test"]["database"]}` - `createdb -U #{abcs["test"]["username"]} -h #{abcs[RAILS_ENV]["host"]} #{abcs["test"]["database"]}` + `dropdb -U #{abcs["test"]["username"]} -h #{abcs["test"]["host"]} #{abcs["test"]["database"]}` + `createdb -U #{abcs["test"]["username"]} -h #{abcs["test"]["host"]} #{abcs["test"]["database"]}` when "sqlite","sqlite3" File.delete(abcs["test"]["dbfile"]) if File.exist?(abcs["test"]["dbfile"]) else