From b2c0ddf033fbf143539ad8a7630747a0e866e4fc Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Thu, 27 Apr 2006 22:39:45 +0000 Subject: Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../connections/native_frontbase/connection.rb | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 activerecord/test/connections/native_frontbase/connection.rb (limited to 'activerecord/test/connections') diff --git a/activerecord/test/connections/native_frontbase/connection.rb b/activerecord/test/connections/native_frontbase/connection.rb new file mode 100644 index 0000000000..e3d1d5b1e1 --- /dev/null +++ b/activerecord/test/connections/native_frontbase/connection.rb @@ -0,0 +1,26 @@ +puts 'Using native Frontbase' +require_dependency 'fixtures/course' +require 'logger' + +ActiveRecord::Base.logger = Logger.new("debug.log") + +db1 = 'activerecord_unittest' +db2 = 'activerecord_unittest2' + +ActiveRecord::Base.establish_connection( + :adapter => "frontbase", + :host => "localhost", + :username => "rails", + :password => "", + :database => db1, + :session_name => "unittest-#{$$}" +) + +Course.establish_connection( + :adapter => "frontbase", + :host => "localhost", + :username => "rails", + :password => "", + :database => db2, + :session_name => "unittest-#{$$}" +) -- cgit v1.2.3