1 print
"Using MySQL via JRuby, activerecord-jdbc-adapter and activerecord-jdbcmysql-adapter\n"
2 require_dependency
'models/course'
5 ActiveRecord
::Base.logger
= Logger
.new("debug.log")
7 # GRANT ALL PRIVILEGES ON activerecord_unittest.* to 'rails'@'localhost';
8 # GRANT ALL PRIVILEGES ON activerecord_unittest2.* to 'rails'@'localhost';
10 ActiveRecord
::Base.configurations
= {
12 :adapter => 'jdbcmysql',
15 :database => 'activerecord_unittest',
18 :adapter => 'jdbcmysql',
20 :database => 'activerecord_unittest2'
24 ActiveRecord
::Base.establish_connection
'arunit'
25 Course
.establish_connection
'arunit2'