aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2006-04-25 19:20:00 +0000
committerMarcel Molina <marcel@vernix.org>2006-04-25 19:20:00 +0000
commit7a01561a6e2ac7e5ab0117d5099a7040a9324202 (patch)
treebc59ca7068378a7e2f8876fd25c4a28a63ed943c
parent9a5b91a329f7c61cc350e0d4b7f1c7f6db78d8b0 (diff)
downloadrails-7a01561a6e2ac7e5ab0117d5099a7040a9324202.tar.gz
rails-7a01561a6e2ac7e5ab0117d5099a7040a9324202.tar.bz2
rails-7a01561a6e2ac7e5ab0117d5099a7040a9324202.zip
Make build_postgresql_databases task make databases owned by the postgres user. Closes #4790. [mlaster@metavillage.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4271 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/CHANGELOG1
-rwxr-xr-xactiverecord/Rakefile6
2 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 3155de959f..67c44f339a 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,6 @@
*SVN*
+* Make build_postgresql_databases task make databases owned by the postgres user. Closes #4790. [mlaster@metavillage.com]
* Sybase Adapter type conversion cleanup. Closes #4736. [dev@metacasa.net]
* Fix bug where calculations with long alias names return null. [Rick]
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index f02c3b5cb7..129cdd8a7f 100755
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -58,8 +58,8 @@ desc 'Build the PostgreSQL test databases'
task :build_postgresql_databases do
%x( createdb activerecord_unittest )
%x( createdb activerecord_unittest2 )
- %x( psql activerecord_unittest -f #{File.join(SCHEMA_PATH, 'postgresql.sql')} )
- %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_PATH, 'postgresql2.sql')} )
+ %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'
@@ -178,4 +178,4 @@ task :release => [ :package ] do
puts release_command
system(release_command)
end
-end \ No newline at end of file
+end