Sha256: 1b5c85e726e11c154ad1081184b5f1cf139852edabd811a78c4cd95050ac9158

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 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 => "root",
  :password => "",
  :database => db1
)

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-1.0.0 test/connections/native_mysql/connection.rb
activerecord-1.1.0 test/connections/native_mysql/connection.rb
activerecord-1.2.0 test/connections/native_mysql/connection.rb
activerecord-1.3.0 test/connections/native_mysql/connection.rb
activerecord-1.4.0 test/connections/native_mysql/connection.rb