mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
ab45bd487a
commit
921752c7d5
2 changed files with 8 additions and 8 deletions
|
@ -69,16 +69,16 @@ task :rebuild_mysql_databases => 'mysql:rebuild_databases'
|
|||
namespace :postgresql do
|
||||
desc 'Build the PostgreSQL test databases'
|
||||
task :build_databases do
|
||||
%x( createdb -U postgres activerecord_unittest )
|
||||
%x( createdb -U postgres activerecord_unittest2 )
|
||||
%x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, 'postgresql.sql')} postgres )
|
||||
%x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, 'postgresql2.sql')} postgres )
|
||||
%x( createdb activerecord_unittest )
|
||||
%x( createdb activerecord_unittest2 )
|
||||
%x( psql activerecord_unittest -f #{File.join(SCHEMA_ROOT, 'postgresql.sql')} )
|
||||
%x( psql activerecord_unittest2 -f #{File.join(SCHEMA_ROOT, 'postgresql2.sql')} )
|
||||
end
|
||||
|
||||
desc 'Drop the PostgreSQL test databases'
|
||||
task :drop_databases do
|
||||
%x( dropdb -U postgres activerecord_unittest )
|
||||
%x( dropdb -U postgres activerecord_unittest2 )
|
||||
%x( dropdb activerecord_unittest )
|
||||
%x( dropdb activerecord_unittest2 )
|
||||
end
|
||||
|
||||
desc 'Rebuild the PostgreSQL test databases'
|
||||
|
|
|
@ -7,13 +7,13 @@ ActiveRecord::Base.logger = Logger.new("debug.log")
|
|||
ActiveRecord::Base.configurations = {
|
||||
'arunit' => {
|
||||
:adapter => 'postgresql',
|
||||
:username => 'postgres',
|
||||
:username => nil,
|
||||
:database => 'activerecord_unittest',
|
||||
:min_messages => 'warning'
|
||||
},
|
||||
'arunit2' => {
|
||||
:adapter => 'postgresql',
|
||||
:username => 'postgres',
|
||||
:username => nil,
|
||||
:database => 'activerecord_unittest2',
|
||||
:min_messages => 'warning'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue