diff options
Diffstat (limited to 'spec/support/connections/postgresql_connection.rb')
-rw-r--r-- | spec/support/connections/postgresql_connection.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/support/connections/postgresql_connection.rb b/spec/support/connections/postgresql_connection.rb index 0fb6dfe065..34d304efa9 100644 --- a/spec/support/connections/postgresql_connection.rb +++ b/spec/support/connections/postgresql_connection.rb @@ -2,7 +2,7 @@ puts "Using native PostgreSQL" require "active_record" require 'logger' -ActiveRecord::Base.logger = Logger.new("debug.log") +ENV['ADAPTER'] = 'postgresql' ActiveRecord::Base.configurations = { 'unit' => { @@ -10,6 +10,4 @@ ActiveRecord::Base.configurations = { :encoding => 'utf8', :database => 'arel_unit', } -} - -ActiveRecord::Base.establish_connection 'unit' +}
\ No newline at end of file |