Sha256: 3b55ad0c8433c2eaf41813f99f16adecda92a0bc4da54e4a73dd6f61301491c9

Contents?: true

Size: 668 Bytes

Versions: 83

Compression:

Stored size: 668 Bytes

Contents

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

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

# GRANT ALL PRIVILEGES ON activerecord_unittest.* to 'rails'@'localhost';
# GRANT ALL PRIVILEGES ON activerecord_unittest2.* to 'rails'@'localhost';

ActiveRecord::Base.configurations = {
  'arunit' => {
    :adapter  => 'mysql',
    :username => 'rails',
    :encoding => 'utf8',
    :database => 'activerecord_unittest',
  },
  'arunit2' => {
    :adapter  => 'mysql',
    :username => 'rails',
    :database => 'activerecord_unittest2'
  }
}

ActiveRecord::Base.establish_connection 'arunit'
Course.establish_connection 'arunit2'

Version data entries

83 entries across 80 versions & 17 rubygems

Version Path
simply_stated-0.0.5 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_mysql/connection.rb
simply_stated-0.0.4 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_mysql/connection.rb
factorylabs-castronaut-0.7.5 vendor/activerecord/test/connections/native_mysql/connection.rb
ginst-2009.12.8 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
activerecord-2.3.5 test/connections/native_mysql/connection.rb
ginst-2009.11.24 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
ginst-2009.11.23 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
ginst-2.0.1 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
ginst-2.0.0 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/activerecord/test/connections/native_mysql/connection.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/activerecord/test/connections/native_mysql/connection.rb
gemstreamer-1.1.0 spec/assets/testapp/vendor/rails/activerecord/test/connections/native_mysql/connection.rb
gemstreamer-1.0.0 spec/assets/testapp/vendor/rails/activerecord/test/connections/native_mysql/connection.rb
gemstreamer-0.0.0 spec/assets/testapp/vendor/rails/activerecord/test/connections/native_mysql/connection.rb
radiant-rc-0.9.0 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
activerecord-2.2.3 test/connections/native_mysql/connection.rb
webroar-0.2.2 src/admin_panel/vendor/rails/activerecord/test/connections/native_mysql/connection.rb
radiant-0.8.1 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
activerecord-2.3.4 test/connections/native_mysql/connection.rb
activerecord-2.3.3 test/connections/native_mysql/connection.rb