aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 23:40:19 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 23:40:19 +0000
commitaf081b3677dfaf53b6d045c1af9ecf2ecc8e79a1 (patch)
treeb8fe153ca66c38c51f891b6d8b4aa5fd8469ffe0
parent693e0df352e52dd5b3d1b191bbd018cd17023343 (diff)
downloadrails-af081b3677dfaf53b6d045c1af9ecf2ecc8e79a1.tar.gz
rails-af081b3677dfaf53b6d045c1af9ecf2ecc8e79a1.tar.bz2
rails-af081b3677dfaf53b6d045c1af9ecf2ecc8e79a1.zip
Fix database creation for postgres (again) #790 [adamm <gnuman1@gmail.com>]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-xrailties/fresh_rakefile4
1 files 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