diff options
Diffstat (limited to 'spec/support/connections/postgresql_connection.rb')
-rw-r--r-- | spec/support/connections/postgresql_connection.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/support/connections/postgresql_connection.rb b/spec/support/connections/postgresql_connection.rb new file mode 100644 index 0000000000..0fb6dfe065 --- /dev/null +++ b/spec/support/connections/postgresql_connection.rb @@ -0,0 +1,15 @@ +puts "Using native PostgreSQL" +require "active_record" +require 'logger' + +ActiveRecord::Base.logger = Logger.new("debug.log") + +ActiveRecord::Base.configurations = { + 'unit' => { + :adapter => 'postgresql', + :encoding => 'utf8', + :database => 'arel_unit', + } +} + +ActiveRecord::Base.establish_connection 'unit' |