aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-07-08 01:28:53 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-07-08 01:28:53 +0000
commitde5b7370ddb988fa4342c56b9c8e7857c420c0ac (patch)
treeb7419a9d5c7f625b95f118d11d5d2c8d3b4d423a /activerecord/Rakefile
parent0d339345426436338b969fb7a22a2517921d7d73 (diff)
downloadrails-de5b7370ddb988fa4342c56b9c8e7857c420c0ac.tar.gz
rails-de5b7370ddb988fa4342c56b9c8e7857c420c0ac.tar.bz2
rails-de5b7370ddb988fa4342c56b9c8e7857c420c0ac.zip
PostgreSQL: create/drop as postgres user. Closes #4790.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/Rakefile')
-rwxr-xr-xactiverecord/Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index 9f12bedf10..97f9cc353a 100755
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -58,16 +58,16 @@ task :rebuild_mysql_databases => [:drop_mysql_databases, :build_mysql_databases]
desc 'Build the PostgreSQL test databases'
task :build_postgresql_databases do
- %x( createdb activerecord_unittest )
- %x( createdb activerecord_unittest2 )
+ %x( createdb -U postgres activerecord_unittest )
+ %x( createdb -U postgres activerecord_unittest2 )
%x( psql activerecord_unittest -f #{File.join(SCHEMA_PATH, 'postgresql.sql')} postgres )
%x( psql activerecord_unittest2 -f #{File.join(SCHEMA_PATH, 'postgresql2.sql')} postgres )
end
desc 'Drop the PostgreSQL test databases'
task :drop_postgresql_databases do
- %x( dropdb activerecord_unittest )
- %x( dropdb activerecord_unittest2 )
+ %x( dropdb -U postgres activerecord_unittest )
+ %x( dropdb -U postgres activerecord_unittest2 )
end
desc 'Rebuild the PostgreSQL test databases'