Skip to content
This repository
Browse code

Remove reference to 'postgres' user in the connection and Rakefiles. …

…Allows postgres permissions to fallback to host / ident based auth.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 921752c7d594850e3d4a6d5c72459310fdf5d0f6 1 parent ab45bd4
Michael Koziarski authored February 20, 2008
12  activerecord/Rakefile
@@ -69,16 +69,16 @@ task :rebuild_mysql_databases => 'mysql:rebuild_databases'
69 69
 namespace :postgresql do
70 70
   desc 'Build the PostgreSQL test databases'
71 71
   task :build_databases do
72  
-    %x( createdb -U postgres activerecord_unittest )
73  
-    %x( createdb -U postgres activerecord_unittest2 )
74  
-    %x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, 'postgresql.sql')} postgres )
75  
-    %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, 'postgresql2.sql')}  postgres )
  72
+    %x( createdb activerecord_unittest )
  73
+    %x( createdb activerecord_unittest2 )
  74
+    %x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, 'postgresql.sql')}  )
  75
+    %x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, 'postgresql2.sql')}   )
76 76
   end
77 77
 
78 78
   desc 'Drop the PostgreSQL test databases'
79 79
   task :drop_databases do
80  
-    %x( dropdb -U postgres activerecord_unittest )
81  
-    %x( dropdb -U postgres activerecord_unittest2 )
  80
+    %x( dropdb activerecord_unittest )
  81
+    %x( dropdb activerecord_unittest2 )
82 82
   end
83 83
 
84 84
   desc 'Rebuild the PostgreSQL test databases'
4  activerecord/test/connections/native_postgresql/connection.rb
@@ -7,13 +7,13 @@
7 7
 ActiveRecord::Base.configurations = {
8 8
   'arunit' => {
9 9
     :adapter  => 'postgresql',
10  
-    :username => 'postgres',
  10
+    :username => nil,
11 11
     :database => 'activerecord_unittest',
12 12
     :min_messages => 'warning'
13 13
   },
14 14
   'arunit2' => {
15 15
     :adapter  => 'postgresql',
16  
-    :username => 'postgres',
  16
+    :username => nil,
17 17
     :database => 'activerecord_unittest2',
18 18
     :min_messages => 'warning'
19 19
   }

0 notes on commit 921752c

Please sign in to comment.
Something went wrong with that request. Please try again.