Sha256: afdcf28d99ae77594689033344684ec8e3e41c82e7fe2553a6c223d8530506a4

Contents?: true

Size: 1.17 KB

Versions: 59

Compression:

Stored size: 1.17 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

59 entries across 59 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/connections/native_ibm_db/connection.rb
ibm_db-5.4.1 test/connections/native_ibm_db/connection.rb
ibm_db-5.4.0 test/connections/native_ibm_db/connection.rb
ibm_db-5.3.2 test/connections/native_ibm_db/connection.rb
ibm_db-5.3.1 test/connections/native_ibm_db/connection.rb
ibm_db-5.2.0 test/connections/native_ibm_db/connection.rb
ibm_db-5.1.0 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.5 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.4 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.3 test/connections/native_ibm_db/connection.rb
ibm_db-5.0.2 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.4-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.4 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.3-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.3 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.2-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.2 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.1 test/connections/native_ibm_db/connection.rb
ibm_db-3.0.1-x86-mingw32 test/connections/native_ibm_db/connection.rb
ibm_db-2.5.27-x86-mingw32 test/connections/native_ibm_db/connection.rb