diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-27 22:39:45 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-27 22:39:45 +0000 |
commit | b2c0ddf033fbf143539ad8a7630747a0e866e4fc (patch) | |
tree | 2aae48e00aa7d4951e711ebb667d8f37e0c8a6d0 /activerecord/test/connections | |
parent | dd5397a57c39da78f22e0fec517ff6e5ede7628a (diff) | |
download | rails-b2c0ddf033fbf143539ad8a7630747a0e866e4fc.tar.gz rails-b2c0ddf033fbf143539ad8a7630747a0e866e4fc.tar.bz2 rails-b2c0ddf033fbf143539ad8a7630747a0e866e4fc.zip |
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
Diffstat (limited to 'activerecord/test/connections')
-rw-r--r-- | activerecord/test/connections/native_frontbase/connection.rb | 26 |
1 files changed, 26 insertions, 0 deletions
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-#{$$}" +) |