Sha256: ae409cb1d2e9b1964e276cb9657ed0db6b374e5b5514e5378eafa0a4c3b83376

Contents?: true

Size: 491 Bytes

Versions: 11

Compression:

Stored size: 491 Bytes

Contents

print "Using native MySQL\n"
require 'fixtures/course'
require 'logger'

ActiveRecord::Base.logger = Logger.new("debug.log")

db1 = 'activerecord_unittest'
db2 = 'activerecord_unittest2'

ActiveRecord::Base.establish_connection(
  :adapter  => "mysql",
  :host     => "localhost",
  :username => "rails",
  :password => "",
  :database => db1
)

Course.establish_connection(
  :adapter  => "mysql",
  :host     => "localhost",
  :username => "rails",
  :password => "",
  :database => db2
)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
activerecord-1.10.0 test/connections/native_mysql/connection.rb
activerecord-1.10.1 test/connections/native_mysql/connection.rb
activerecord-1.11.1 test/connections/native_mysql/connection.rb
activerecord-1.11.0 test/connections/native_mysql/connection.rb
activerecord-1.8.0 test/connections/native_mysql/connection.rb
activerecord-1.5.1 test/connections/native_mysql/connection.rb
activerecord-1.7.0 test/connections/native_mysql/connection.rb
activerecord-1.9.0 test/connections/native_mysql/connection.rb
activerecord-1.6.0 test/connections/native_mysql/connection.rb
activerecord-1.5.0 test/connections/native_mysql/connection.rb
activerecord-1.9.1 test/connections/native_mysql/connection.rb