Sha256: 55be4b5121e0f4a1ab2d3c8dbeb00b86bb47690c5d9676161d775619fad092d9

Contents?: true

Size: 638 Bytes

Versions: 37

Compression:

Stored size: 638 Bytes

Contents

print "Using native SQLServer via ODBC\n"
require_dependency 'models/course'
require 'logger'

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

ActiveRecord::Base.configurations = {
  'arunit' => {
    :adapter  => 'sqlserver',
    :mode     => 'ODBC',
    :host     => 'localhost',
    :username => 'rails',
    :dsn => 'activerecord_unittest'
  },
  'arunit2' => {
    :adapter  => 'sqlserver',
    :mode     => 'ODBC',
    :host     => 'localhost',
    :username => 'rails',
    :dsn => 'activerecord_unittest2'
  }
}

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

Version data entries

37 entries across 37 versions & 6 rubygems

Version Path
akitaonrails-activerecord-sqlserver-adapter-1.1.1 test/connections/native_sqlserver_odbc/connection.rb
artpop-2000-2005-adapter-2.2.15 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-1.0.0 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-1.0.1 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.0 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.1 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.10 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.11 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.12 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.13 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.14 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.15 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.16 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.17 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.18 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.19 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.2 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.21 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.3 test/connections/native_sqlserver_odbc/connection.rb
rails-sqlserver-2000-2005-adapter-2.2.4 test/connections/native_sqlserver_odbc/connection.rb