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
p8-castronaut-0.6.1.1 vendor/activerecord/test/connections/native_mysql/connection.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/connections/native_mysql/connection.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/connections/native_mysql/connection.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/connections/native_mysql/connection.rb
relevance-castronaut-0.7.5 vendor/activerecord/test/connections/native_mysql/connection.rb
activerecord-2.3.18 test/connections/native_mysql/connection.rb
activerecord_csi-2.3.5.p8 test/connections/native_mysql/connection.rb
activerecord-2.3.17 test/connections/native_mysql/connection.rb
activerecord_csi-2.3.5.p7 test/connections/native_mysql/connection.rb
activerecord_csi-2.3.5.p6 test/connections/native_mysql/connection.rb
activerecord-2.3.16 test/connections/native_mysql/connection.rb
activerecord-2.3.15 test/connections/native_mysql/connection.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activerecord-2.3.14/test/connections/native_mysql/connection.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/activerecord-2.3.12/test/connections/native_mysql/connection.rb
activerecord-2.3.14 test/connections/native_mysql/connection.rb
kajam-1.0.3.rc2 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
activerecord-2.3.12 test/connections/native_mysql/connection.rb
radiant-1.0.0.rc2 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
radiant-1.0.0.rc1 vendor/rails/activerecord/test/connections/native_mysql/connection.rb
webroar-0.5.0 src/admin_panel/vendor/rails/activerecord/test/connections/native_mysql/connection.rb