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