Sha256: 410fa99f04afa9cfc55cc66b6222013d420e068b13cdad4ed970f79f02b8f668

Contents?: true

Size: 1.21 KB

Versions: 21

Compression:

Stored size: 1.21 KB

Contents

=begin
print "Using native IBM_DB\n"
require_dependency 'models/course'
require 'logger'

ActiveRecord::Base.logger = Logger.new STDOUT
ActiveRecord::Base.logger.level = Logger::FATAL

ActiveRecord::Base.configurations = {
  'arunit' => {
    :adapter       => 'ibm_db',
    :username      => 'db2user',
    :password      => 'secret', 
    :host          => 'bilbao',
    :port          => '50000',
    :schema        => 'rails123',
    :account       => 'tester',
    :app_user      => 'tester_11',
    :application   => 'rails_tests',
    :workstation   => 'auckland',
    :start_id      => 100,
    :database      => 'ARUNIT',
    :parameterized => false
  },
  'arunit2' => {
    :adapter       => 'ibm_db',
    :username      => 'db2user',
    :password      => 'secret',
    :host          => 'bilbao',
    :port          => '50000',
    :schema        => 'rails123',
    :account       => 'tester',
    :app_user      => 'tester_11',
    :application   => 'rails_tests',
    :workstation   => 'auckland',
    :start_id      => 100,
    :database      => 'ARUNIT2',
    :parameterized => false
  }
}

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.4.1-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.4.0-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.3.2-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.2.0-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.1.0-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.5-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.4-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.3-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.2-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.5-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.5 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.0-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.0-x86_64-darwin-14 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.0 test/connections/native_ibm_db/connection.rb
ibm_db-2.6.1-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-2.6.1-universal-darwin-14 test/connections/native_ibm_db/connection.rb
ibm_db-2.6.1 test/connections/native_ibm_db/connection.rb
ibm_db-2.6.0-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-2.6.0-x86_64-darwin-14 test/connections/native_ibm_db/connection.rb