diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-08 01:28:53 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-08 01:28:53 +0000 |
commit | de5b7370ddb988fa4342c56b9c8e7857c420c0ac (patch) | |
tree | b7419a9d5c7f625b95f118d11d5d2c8d3b4d423a /activerecord | |
parent | 0d339345426436338b969fb7a22a2517921d7d73 (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/CHANGELOG | 2 | ||||
-rwxr-xr-x | activerecord/Rakefile | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index c745eb4aea..5c22036ab2 100644 --- a/activerecord/CHANGELOG +++ b/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] 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' |