diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 23:40:19 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 23:40:19 +0000 |
commit | af081b3677dfaf53b6d045c1af9ecf2ecc8e79a1 (patch) | |
tree | b8fe153ca66c38c51f891b6d8b4aa5fd8469ffe0 | |
parent | 693e0df352e52dd5b3d1b191bbd018cd17023343 (diff) | |
download | rails-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-x | railties/fresh_rakefile | 4 |
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 |