diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-16 08:18:13 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-16 08:18:13 +0000 |
commit | 9cb02c5317759ab4741fb2786173287879534c1c (patch) | |
tree | bc674616bfe0099bc7eb169b0a134a6aa32bc5b9 /activerecord/test/connections/native_firebird/connection.rb | |
parent | 2076dca63fde71693e4b8e23c4b1ace0a35b964f (diff) | |
download | rails-9cb02c5317759ab4741fb2786173287879534c1c.tar.gz rails-9cb02c5317759ab4741fb2786173287879534c1c.tar.bz2 rails-9cb02c5317759ab4741fb2786173287879534c1c.zip |
r3116@asus: jeremy | 2005-11-16 00:17:06 -0800
Introducing the Firebird adapter. Closes #1874.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3052 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/connections/native_firebird/connection.rb')
-rw-r--r-- | activerecord/test/connections/native_firebird/connection.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/activerecord/test/connections/native_firebird/connection.rb b/activerecord/test/connections/native_firebird/connection.rb new file mode 100644 index 0000000000..96baf38376 --- /dev/null +++ b/activerecord/test/connections/native_firebird/connection.rb @@ -0,0 +1,24 @@ +print "Using native Firebird\n" +require 'fixtures/course' +require 'logger' + +ActiveRecord::Base.logger = Logger.new("debug.log") + +db1 = 'activerecord_unittest' +db2 = 'activerecord_unittest2' + +ActiveRecord::Base.establish_connection( + :adapter => "firebird", + :host => "localhost", + :username => "rails", + :password => "rails", + :database => db1 +) + +Course.establish_connection( + :adapter => "firebird", + :host => "localhost", + :username => "rails", + :password => "rails", + :database => db2 +) |