Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PostgreSQL: create/drop as postgres user. Closes #4790.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit de5b7370ddb988fa4342c56b9c8e7857c420c0ac 1 parent 0d33934
@jeremy jeremy authored
Showing with 6 additions and 4 deletions.
  1. +2 −0  activerecord/CHANGELOG
  2. +4 −4 activerecord/Rakefile
View
2  activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* PostgreSQL: create/drop as postgres user. #4790 [mail@matthewpainter.co.uk, mlaster@metavillage.com]
+
* Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>]
* PostgreSQL: correctly quote the ' in pk_and_sequence_for. #5462 [tietew@tietew.net]
View
8 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'
Please sign in to comment.
Something went wrong with that request. Please try again.